1105644a9b76bac565e8aef882c1927a05ae6903
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2003-12-05  Waldek Hebisch <hebisch@math.uni.wroc.pl>
2
3         * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
4         and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
5
6 2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
7
8         * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
9         for n32 & n64 abicalls.
10
11 2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
12
13         PR bootstrap/13145
14         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
15         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
16         (mips_load_got): Always create a constant MEM.
17         (mips_expand_call): Use load_callsi and load_calldi.
18         * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
19         (load_callsi, load_calldi): New patterns.
20
21 2003-12-05  Peter Gerwinski <peter@gerwinski.de>
22
23         * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
24
25 2003-12-05  Steven Bosscher  <stevenb@suse.de>
26
27         * config/d30v/d30v-protos.h , config/d30v/d30v.c,
28         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
29         config/fr30/fr30-protos.h, config/fr30/fr30.c,
30         config/i370/i370-protos.h, config/i370/i370.c,
31         config/i960/i960-protos.h, config/i960/i960.c,
32         config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
33         config/m32r/m32r-protos.h, config/m32r/m32r.c,
34         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
35         config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
36         Convert to ISO C90 function declarations and definitions.
37
38 2003-12-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
39
40         * doc/extend.texi (Constructing Calls): Add warning about
41         the limitations of the functions.
42
43 2003-12-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
44
45         PR middle-end/11151
46         * function.h (struct function): New field 'x_naked_return_label'.
47         * function.c (free_after_compilation): Set it to NULL.
48         (expand_function_end): Emit 'naked_return_label' if it exists.
49         * rtl.h (expand_naked_return): Declare.
50         * stmt.c (expand_naked_return): New function to generate a
51         jump to 'naked_return_label'.
52         * builtins.c (expand_builtin_return): Call expand_naked_return
53         instead of expand_null_return.
54         * config/sparc/sparc.md (untyped_return): Likewise.
55
56 2003-12-04  Andrew Pinski  <pinskia@physics.uc.edu>
57
58         PR target/11322
59         * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
60
61         PR target/12467
62         * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
63
64 2003-12-04  Stuart Hastings  <stuart@apple.com>
65
66         * rs6000.c (output_call, macho_branch_islands,
67         add_compiler_branch_island, no_previous_def, get_previous_label)
68         Revisions of xx_stub functions for branch islands,
69         add -fPIC support for Darwin.
70         * rs6000-protos.h (output_call) Prototype.
71         * rs6000.md Use output_call.
72         * invoke.texi Explain Darwin semantics of -longcall.
73         * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
74
75 2003-12-04  Richard Henderson  <rth@redhat.com>
76
77         * config/i386/i386.md (addqi3_carry): Use q not r constraints.
78         (subqi3_carry): Likewise.
79
80 2003-12-04  J"orn Rennecke <joern.rennecke@superh.com>
81
82         PR optimization/13260
83         * sh-protos.h (sh_expand_t_scc): Declare.
84         * sh.h (PREDICATE_CODES): Add cmpsi_operand.
85         * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
86         * sh.md (cmpsi): Use cmpsi_operand.  If T_REG is compared to
87         something that is not a CONST_INT, copy it into a pseudo register.
88         (subc): Fix description of new T value.
89         (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
90         (sltu, sleu, sgeu): Likewise.
91         (seq, sne): Likewise. Use sh_expand_t_scc.
92
93 2003-12-04  Nathanael Nerode  <neroden@gcc.gnu.org>
94
95         * configure.in: Generalize the CONFIG_HEADERS pattern under which
96         we stamp cstamp-h.
97         * configure: Regenerate.
98
99         * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
100         to avoid trouble when updating to autoconf 2.5x.
101         * configure: Regenerate (with autoconf 2.13 still).
102
103 2003-12-04  J"orn Rennecke <joern.rennecke@superh.com>
104
105         * sh.md (truncdiqi2): Use andi opcode for immediate.
106         (reload_outdf+1,reload_outdf+2): Remove constraints.
107         (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
108         (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
109         (fipr, ftrv): Add .s suffix to opcode.
110
111 2003-12-04  Richard Sandiford  <rsandifo@redhat.com>
112
113         PR target/13186
114
115         Revert all of the following patch, except the addition of
116         hook_bool_machine_mode_true:
117
118         2003-11-02  Richard Sandiford  <rsandifo@redhat.com>
119
120         * Makefile.in (targhooks.o, reload.o): Update dependencies.
121         (GTFILES): Add targhooks.c.
122         (gt-targhooks.h): New rule; depend on s-gtype.
123         * target.h (direct_pool_load_p): New hook.
124         * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
125         (TARGET_INITIALIZER): Include it.
126         * targhooks.h (default_direct_pool_load_p): Declare.
127         (hook_bool_machine_mode_true): Declare.
128         * targhooks.c: Include insn-config.h, recog.h, ggc.h and
129         gt-targhooks.h.
130         (pool_symbol): New variable.
131         (default_direct_pool_load_p): New function.
132         (hook_bool_machine_mode_true): New function.
133         * reload.c: Include target.h.
134         (find_reloads): If an alternative will force a constant into memory,
135         count an extra reload if constant pool symbols are not valid
136         addresses.  If an alternative uses memory to move values between
137         registers, count the move as two reloads rather than one.
138         * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
139         * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
140
141 2003-12-03  Mark Mitchell  <mark@codesourcery.com>
142
143         * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
144         * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
145         HAVE_AS_TLS is true.
146         * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
147
148 2003-12-03  James E Wilson  <wilson@specifixinc.com>
149
150         * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
151
152         * gcc-page.c (extra_order_size_tab): Correct comment.
153
154 2003-12-03  Kazu Hirata  <kazu@cs.umass.edu>
155
156         * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
157         instead of gen_push_h8300hs.
158         (pop): Call gen_pop_h8300hs_advanced instead of
159         gen_pop_h8300hs.
160         * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
161         * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
162         Tighten the predicate.
163         (*tablejump_h8300hs_normal): Tighten the predicate.
164         (push_h8300hs): Change to
165         push_h8300hs_advanced.
166         (pop_h8300hs): Change to pop_h8300hs_advanced.
167
168 2003-12-03  Eric Christopher  <echristo@redhat.com>
169
170         * rtl.c: Fix typo.
171         * config/mips/mips.h: Ditto. Fix formatting.
172
173 2003-12-04  Ben Elliston  <bje@wasabisystems.com>
174
175         * future.options: Remove. Move to gnu.org web pages.
176
177 2003-12-03  Eric Christopher  <echristo@redhat.com>
178
179         * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
180         from here...
181         * c-tree.h: to here.
182
183 2003-12-03  Jan Hubicka  <jh@suse.cz>
184
185         PR optimization/12324
186         * toplev.c  (rest_of_decl_compilation): Do not deffer when compiling
187         in unit-at-a-time mode.
188
189 2003-12-03  Jakub Jelinek  <jakub@redhat.com>
190
191         * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
192         read-only field if cleared is 0.
193
194 2003-12-03  Nathanael Nerode  <neroden@gcc.gnu.org>
195
196         * config.gcc: Mark obsolete targets for GCC 3.4.
197
198 2003-12-03  Zack Weinberg  <zack@codesourcery.com>
199
200         * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
201         * config.in, configure.in: Regenerate.
202         * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
203         including iconv.h.
204
205 2003-12-03  Alan Modra  <amodra@bigpond.net.au>
206
207         PR target/11229
208         * cse.c (cse_insn): Set classp using src_const_elt if
209         src_eqv_elt is NULL.
210
211 2003-12-03  Richard Earnshaw  <rearnsha@arm.com>
212
213         * gcse.c (reg_clear_last_set): New function.
214         (reg_set_info): If data is non-null, treat it as an sbitmap of
215         registers, set the bit for the register being set.
216         (compute_store_table): Allocate last_set_in with xcalloc.  Do not
217         memset this array on each iteration.  Pass reg_set_in_block[bb->index]
218         to note_stores while computing last_set_in instead of scanning
219         last_set_in after the first pass through the insns.
220         Clear last_set_in using reg_clear_last_set instead of explicitly
221         rescanning after each insn.  If checking is enabled, assert that
222         last_set_in is completely zeroed after each bb has been processed.
223
224 2003-12-02  Geoffrey Keating  <geoffk@geoffk.org>
225
226         * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
227         never read-write.
228         <REG>: Delete incorrect comment.
229         <SET>: Remove 'use_flags' variable.
230
231 2003-12-03  David Edelsohn  <edelsohn@gnu.org>
232
233         * function.c (assign_parms): Make sure parm PARALLEL combined
234         in reg is composed of more than one object and the mode really
235         produces a reg.
236
237 2003-12-03  Jan Hubicka  <jh@suse.cz>
238
239         * i386.c (classify_argument): Make it 64bit clean.
240
241 2003-12-02  Richard Sandiford  <rsandifo@redhat.com>
242
243         * config/mips/mips.c (mips_output_external): Replace checks for
244         specific builtin-in functions with a check for DECL_BUILTIN_IN.
245
246 2003-12-02  Richard Henderson  <rth@redhat.com>
247
248         * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
249         * tree.h (TREE_SET_CODE): Likewise.
250         * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
251
252 2003-12-02  Ben Elliston  <bje@wasabisystems.com>
253
254         * dbxstclass.h: Rename from this ..
255         * xcoff.h: .. to this.
256         * xcoffout.c: Include xcoff.h.
257
258 2003-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
259
260         * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
261
262 2003-12-01  James Lemke <jim@wasabisystems.com>
263
264         * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
265
266 2003-12-01  Roger Sayle  <roger@eyesopen.com>
267
268         PR optimization/11634
269         * recog.c (split_insn): Factor test of INSN_P and handling of
270         set_noop_p out of here into the two callers.
271         (split_all_insns): Add INSN_P test and set_noop_p handling here.
272         If deleting a no-op set after reload that has a REG_UNUSED note,
273         mark the basic block as changed and recalculate life information.
274         (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
275         here.
276
277 2003-12-01  Roger Sayle  <roger@eyesopen.com>
278
279         PR optimization/12322
280         * gcse.c (struct ls_expr): Change type of hash_index from int to
281         unsigned int.
282         (hash_expr): Document hash_table_size parameter and wrap long line.
283         (ldst_entry): Calculate expression's hash_index and record in ptr.
284         (trim_ld_motion_mems): Use hash_index to search a single bucket
285         instead of scanning the entire hash_table.  Remove the "del" local
286         variable and use the equivalent "expr == 0" instead.  Change last
287         to be a pointer to the pointer to the current element, to simplify
288         and speed-up deleting from a linked list.
289
290 2003-12-01  James E Wilson  <wilson@specifixinc.com>
291
292         * doc/contrib.texi: Update David Mosberger.
293
294         * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
295         of missing fields.
296
297         PR target/8407
298         * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
299         gen_rtx_REG to create new reg with argument mode.
300
301 2003-12-01  Steven Bosscher  <stevenb@suse.de>
302
303         * ggc.h (struct alloc_zone): Move forward declaration up.
304         (new_ggc_zone): New function prototype.
305         (destroy_ggc_zone): Ditto.
306         * ggc-simple.c (new_ggc_zone): New function, does nothing.
307         (destroy_ggc_zone): Ditto.
308         * ggc-page.c (new_ggc_zone): New function, does nothing.
309         (destroy_ggc_zone): Ditto.
310         * ggc-zone.c (struct page_entry): Fix comment.
311         (ggc_alloc_typed): Use a switch statement instead of ifs.
312         (new_ggc_zone): New function to set up a new GC zone.
313         (destroy_ggc_zone): New function to remove a GC zone.
314         init_ggc): Use new_ggc_zone to set up the default zones.
315         (ggc_collect): Walk a list of zones, instead of just the
316         default zones.  Report statistics using the zone name.
317
318 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
319
320         * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
321
322 2003-12-01  Roger Sayle  <roger@eyesopen.com>
323
324         PR optimization/12628
325         * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
326         * regclass.c (reg_scan): Include allocate_reg_info time in
327         TV_REG_SCAN.  Minor clean-ups.
328         (reg_scan_update): Minor clean-ups.
329
330 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
331
332         * config.gcc (s390x-ibm-tpf*): Add extra_parts.
333
334 2003-12-01  James E Wilson  <wilson@specifixinc.com>
335
336         * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
337         GR_ARG_FIRST.
338
339 2003-12-01  Zack Weinberg  <zack@codesourcery.com>
340
341         * common.opt: Remove -fgnu-linker.
342         * flags.h: Remove flag_gnu_linker.
343         * opts.c: Don't handle OPT_fgnu_linker.
344         * toplev.c: Don't initialize flag_gnu_linker.
345         Remove gnu-linker entry from f_options.
346         * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
347         Don't reset flag_gnu_linker.
348         * config/mips/mips.c (override_options): Likewise.
349         * doc/invoke.texi: Remove all mention of -fgnu-linker.
350
351 2003-12-01  Daniel Berlin  <dberlin@dberlin.org>
352
353         * ggc-zone.c (ggc_pch_write_object): Calculate object size using
354         ggc_get_size (which accounts for large objects properly).
355
356 2003-12-01  Jeff Sturm  <jsturm@one-point.com>
357
358         PR optimization/13024
359         * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
360         parameter.
361         (rest_of_handle_old_regalloc): Likewise.  Add rebuild_notes
362         declaration.  Rebuild jump labels following local_alloc if necessary.
363         (rest_of_compilation): Remove rebuild_label_notes_after_reload
364         declaration.  Don't pass rebuild_notes parameter to
365         rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
366         Don't rebuild jump labels.
367
368 2003-12-01  Jeff Law  <law@redhat.com>
369
370         * flow.c (count_or_remove_death_notes_bb): New.  Extracted from
371         count_or_remove_death_notes.
372         (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
373
374 2003-12-01  Andreas Krebbel  <krebbel1@de.ibm.com>
375
376         * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
377
378 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
379
380         * reload.c (find_reloads_address): Split addresses of type
381         (plus (plus (reg) (reg)) (const_int)) only if one register
382         is either a valid base register or else one of the stack
383         frame related registers (sp/fp/ap).
384
385 2003-12-01  Steven Bosscher  <stevenb@suse.de>
386
387         * function.c (update_epilogue_consts): Don't use PARAMS.
388         * rtl.h (web_main): Ditto.
389         * target.h (is_costly_dependence): Ditto
390
391 2003-12-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
392
393         PR middle-end/7847
394         * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
395         do not recheck that 'op0' is a MEM.  Move comment.  When testing for
396         unaligned objects, take also into account the alignment of 'op0' and
397         'mode1' if 'op0' is a MEM.
398
399 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
400
401         * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
402
403 2003-12-01  Kelley Cook  <kcook@gcc.gnu.org>
404
405         * doc/install.texi: Note that fastjar is built with automake 1.7.x
406         and autoconf 2.57.
407
408 2003-12-01  Alan Modra  <amodra@bigpond.net.au>
409
410         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
411         target_flags directly rather than using TARGET_* defines.
412
413 2003-11-30  Ben Elliston  <bje@wasabisystems.com>
414
415         * doschk.c: Remove.
416
417 2003-11-30  Richard Sandiford  <rsandifo@redhat.com>
418
419         PR target/12727
420         * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
421         on 32-bit big-endian targets.
422
423 2003-11-30  Kazu Hirata  <kazu@cs.umass.edu>
424
425         * genemit.c (register_constraints): Remove.
426
427 2003-11-30  Andreas Krebbel  <krebbel1@de.ibm.com>
428
429         * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
430         "iordi3"): Insns now use multiple letter constraints.
431         ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
432         covered by "*movdi_64".
433         ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
434         covered by "*movsi_zarch" and "*movsi_esa".
435         ("*movsi_zarch", "*movsi_!zarch"): New insns.
436         ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
437         by "*andsi3_zarch" and "anddi3".
438         ("*anddi3_ni"): Insn merged with "anddi3".
439         ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
440         ("*andsi3_zarch", "*andsi3_esa"): New insns.
441         ("*iordi3_oi"): Insn merged with "iordi3".
442         ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
443         ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
444
445         * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
446         merged to s390_single_part.
447         (s390_single_part): New function.
448         NOTE: Semantics have changed a bit. Now the value of the part must
449         be different from the others to get a non-negative return value.
450         (s390_extract_qi, s390_extract_hi): Functions merged to
451         s390_extract_part.
452         (s390_extract_part, s390_extra_constraint_str,
453         s390_const_ok_for_constraint_p): New functions. The L constraint got a
454         new meaning and the N constraint was added as a multiple letter
455         constraint.
456         (s390_extra_constraint): Function deleted.
457         (print_operand): New output modifier 'i' and 'j' added.
458         All uses of CONST_OK_FOR_LETTER_P were replaced by
459         CONST_OK_FOR_CONSTRAINT_P.
460
461         * config/s390/s390-protos.h: Function prototypes adapted.
462         * doc/md.texi: Documentation for new constraint letters added.
463
464 2003-11-30  Andreas Schwab  <schwab@suse.de>
465
466         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
467
468 2003-11-29  James E Wilson  <wilson@specifixinc.com>
469
470         * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
471         instead of in shared_name.
472
473         * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
474         * reload1.c (reload): Re-add it here.
475
476 2003-11-30  Alan Modra  <amodra@bigpond.net.au>
477
478         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
479         set SECTION_WRITE on TARGET_RELOCATABLE.
480
481 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
482
483         * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
484
485 2003-11-28  Gunther Nikl  <gni@gecko.de>
486
487         * config/m68k/m68k.c (MOTOROLA): Move from here...
488         * config/m68k/m68k.h (MOTOROLA): ... to here.
489         (OUTPUT_JUMP): Use do {...} while (0).
490         * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
491
492 2003-11-28  Gunther Nikl  <gni@gecko.de>
493
494         * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
495         m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
496         MOTOROLA and USE_GAS.
497         * config/m68k/rtemself.h (MOTOROLA): Delete.
498         * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
499         * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
500
501 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
502
503         * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
504
505 2003-11-29  Kelley Cook  <kcook@gcc.gnu.org>
506
507         * Makefile.in (install-info): Install gccinstall.info too.
508
509 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
510
511         * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
512
513 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
514
515         * config/s390/s390.md ("movhi"): Do not emit extender pattern
516         when loading from a (MEM (ADDRESSOF ...)).
517         ("movqi"): Likewise.
518
519 2003-11-29  Joseph S. Myers  <jsm@polyomino.org.uk>
520
521         PR c/10333
522         * c-parse.in (typespec_reserved_nonattr): Reject typeof on
523         bit-fields.
524
525 2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
526
527         * stmt.c (expand_asm_operands): Check whether force_const_mem
528         succeeded.
529
530 2003-11-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
531
532         * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
533         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
534
535         * config/alpha/gnu.h, config/alpha/linux.h,
536         config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
537         config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
538         config/i386/linux-aout.h, config/i386/linux.h,
539         config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
540         config/m68k/uclinux.h, config/mips/linux.h,
541         config/mn10300/linux.h, config/pa/pa-linux.h,
542         config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
543         config/sparc/linux.h, config/sparc/linux64.h,
544         config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
545         HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
546         all necessary assertions are included.
547
548 2003-11-28  Jan Hubicka  <jh@suse.cz>
549
550         * emit-rtl.c (set_used_flags): New.
551         (verify_rtx_sharing, verify_rtl_sharing): New.
552         (unshare_all_rtl_1): Rename to....
553         (unshare_all_rtl_in_chain): ... this one; make static.
554         (copy_rtx_if_shared): LABEL_REF chan be shared.
555         * ifcvt.c (unshare_ifcvt_sequence): New.
556         (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
557         noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
558         noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
559         noce_try_abs, noce_process_if_block, find_cond_trap
560         * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
561         Declare.
562
563 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
564
565         * config/h8300/h8300.md: Fix a comment typo.
566
567 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
568
569         * config/h8300/h8300.md (*movsf_h8300h): Change to
570         *movsf_h8300hs.
571         (addsi_h8300): Change to *addsi_h8300.
572         (addsi_h8300h): Change to *addsi_h8300hs.
573         (subsi3_h8300): Change to *subsi3_h8300.
574         (subsi3_h8300h): Change to *subsi3_h8300hs.
575         (neghi2_h8300h): Change to *neghi2_h8300hs.
576         (negsi2_h8300h): Change to *negsi2_h8300hs.
577
578 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
579
580         * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
581         constraint.
582         (*subhi3_h8300hs): Likewise.
583
584 2003-11-28  David Edelsohn  <edelsohn@gnu.org>
585
586         * config/rs6000/rs6000.h (MASK_MFCRF): New.
587         (TARGET_MFCRF): Test target_flags, not processor type.
588         (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
589         Change Don't to Do not.
590         * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
591         to power4, 970, G5.
592
593 2003-11-27  J"orn Rennecke <joern.rennecke@superh.com>
594
595         * cse.c (cse_set_around_loop): When changing a constant load
596         to a register -register copy, add a REG_EQUAL note.
597
598 2003-11-27  Randolph Chung  <tausq@debian.org>
599             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
600
601         * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
602         insns.  Use the regular call expander for the call to the profiler.
603         * pa.md (call_profiler): Delete.
604         (load_offset_label_address): New insn to load the address of the
605         current function for the profiler.
606         (lcla1, lcla2): New insns to output a code label and load its address.
607
608 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
609
610         * final.c (final_scan_insn): Remove commented-out code.
611
612 2003-11-27  Nathanael Nerode  <neroden@gcc.gnu.org>
613
614         * doc/install.texi: Remove ADAC reference and make accurate.
615
616 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
617
618         * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
619         (FUNCTION_VALUE_REGNO_P): Likewise.
620         * config/h8300/h8300.md: Define R0_REG.
621
622 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
623
624         * config/h8300/h8300.c: Fix formatting.
625         * config/h8300/h8300.md: Likewise.
626
627 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
628
629         * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
630
631 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
632
633         * config/h8300/h8300.md: Give names to anonymous insns.
634
635 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
636
637         * config/h8300/h8300.md (extendqisi2): Remove constraints.
638
639 2003-11-27  Gunther Nikl  <gni@gecko.de>
640
641         * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
642
643 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
644
645         PR optimization/13041
646         * final.c (frame_pointer_needed): Fix comment.
647         * reload1.c (reload): Decrease alignment of the frame
648         pointer if it was used for register allocation.
649
650 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
651
652         PR target/12900
653         * reg-stack (move_for_stack_reg): New prototype.  Return
654         whether a control flow insn was deleted.
655         (subst_stack_regs_pat): Likewise, using the information provided
656         by move_for_stack_reg.
657         (subst_stack_regs): Likewise, using the information provided
658         by subst_stack_regs_pat.
659         (convert_regs_1): Record whether a control flow insn was deleted,
660         using the information provided by subst_stack_regs.  Purge dead
661         edges only if a control flow insn was deleted.
662
663 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
664
665         PR middle-end/8028
666         PR middle-end/9890
667         PR middle-end/11151
668         PR middle-end/12210
669         PR middle-end/12503
670         PR middle-end/12692
671         * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
672         as the base address to copy the memory arguments to.
673
674 2003-11-26  Danny Smith  <dannysmith@users.sourceforge.net>
675
676         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
677         function aliases as functions.
678
679 2003-11-26  Nathanael Nerode  <neroden@gcc.gnu.org>
680
681         * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
682         of ADAC.
683         * configure: Regenerate.
684
685         * Makefile.in: Remove references to ADAC.
686
687         * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
688         * configure: Regenerate.
689
690 2003-11-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
691             Olivier Hainque  <hainque@act-europe.fr>
692
693         PR target/6466
694         * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
695         (sparc_flat_compute_frame_size): Likewise.
696         (sparc_flat_save_restore): Move prototype...
697         * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
698         (save_regs): New prototype.
699         (build_big_number): Likewise.
700         (apparent_fsize): Change type to HOST_WIDE_INT.
701         (actual_fsize): Likewise.
702         (frame_base_offset): Likewise.
703         (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
704         Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
705         [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
706         to load a 64-bit constant.
707         (sparc_nonflat_function_prologue): Change string descriptor to
708         HOST_WIDE_INT_PRINT_DEC.  Change offset type to HOST_WIDE_INT.
709         (output_restore_regs): Change offset type to HOST_WIDE_INT.
710         (sparc_nonflat_function_epilogue): Change string descriptor to
711         HOST_WIDE_INT_PRINT_DEC.  Use build_big_number.
712         (output_sibcall): Change size type to HOST_WIDE_INT.  Use
713         build_big_number.  Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
714         (sparc_frame_info): Change types for several components.
715         (sparc_flat_compute_frame_size): Update types according to previous
716         change.
717         (sparc_flat_function_prologue): Change string descriptor to
718         HOST_WIDE_INT_PRINT_DEC.  Change offset type to int.  Use
719         build_big_number.
720         (sparc_flat_function_epilogue): Change offset type to int.
721         Rename 'size1' into 'reg_offset1'.  Change string descriptor to
722         HOST_WIDE_INT_PRINT_DEC.  Use build_big_number.  Change big number
723         limit to 4096 instead of 4095.
724
725         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
726         HOST_WIDE_INT.
727
728 2003-11-24  Waldek Hebisch <hebisch@math.uni.wroc.pl>
729
730         * function.c: Make outer_function-chain external.
731         * function.h: Likewise.
732
733 2003-11-24  Richard Sandiford  <rsandifo@redhat.com>
734
735         * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
736         using GNU ld.
737         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
738         whole of the previous STARTFILE_SPEC except crtbegin.o%s.
739         (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
740         (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
741         (SUBTARGET_EXTRA_SPECS): Define.
742         * config/mips/iris6gld.h (LINK_SPEC): Change -init function
743         to __gcc_init and -fini function to __gcc_fini.
744         (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
745         (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
746         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
747         * config/mips/t-iris6gld,
748         * config/mips/irix6-crti.asm,
749         * config/mips/irix6-crtn.asm: New files.
750
751 2003-11-24  Eric Christopher  <echristo@redhat.com>
752
753         PR C/13014
754         * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
755         (start_function): Use.
756         (c_push_function_context): Ditto.
757         (c-pop_function_context): Ditto.
758         (language_function): Move...
759         * c-tree.h: ... here. Add x_in_iteration_stmt, and
760         x_in_case_stmt.
761         * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
762         c_in_iteration_stmt, c_in_case_stmt for parser state. Move
763         check for valid break or continue statment here...
764         * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
765         here. Change original errors to abort.
766
767 2003-11-24  Jan Hubicka  <jh@suse.cz>
768
769         * fold-const.c (fold):  Do not return early when optimizing
770         COMPONENT_REF and constant.
771
772 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
773
774         * config/h8300/h8300.md (tablejump_h8300): Change to
775         *tablejump_h8300.
776         (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
777         (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
778         (indirect_jump_h8300): Change to *indirect_jump_h8300.
779         (indirect_jump_h8300h): Change to
780         *indirect_jump_h8300hs_advanced.
781         (indirect_jump_normal_mode): Change to
782         *indirect_jump_h8300hs_normal.
783
784 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
785
786         * config/h8300/h8300.md: Remove constraints from expanders.
787
788 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
789
790         * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
791         stm_h8300s_2_advanced.
792         (stm_h8300s_2_normal): New.
793         (stm_h8300s_2): Likewise.
794         (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
795         (stm_h8300s_3_normal): New.
796         (stm_h8300s_3): Likewise.
797         (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
798         (stm_h8300s_4_normal): New.
799         (stm_h8300s_4): Likewise.
800         (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
801         (ldm_h8300s_2_normal): New.
802         (ldm_h8300s_2): Likewise.
803         (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
804         (ldm_h8300s_3_normal): New.
805         (ldm_h8300s_3): Likewise.
806         (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
807         (ldm_h8300s_4_normal): New.
808         (ldm_h8300s_4): Likewise.
809         (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
810         (two peephole2's): New.
811
812 2003-11-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
813
814         * genattrtab.c (simplify_cond): Update indices correctly.
815         (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
816         attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
817         (check_attr_test, encode_units_mask, compute_alternative_mask,
818         make_alternative_compare, simplify_and_tree,
819         attr_rtx_cost, simplify_test_exp, gen_attr,
820         write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
821         * rtl.def (EQ_ATTR_ALT): New.
822
823 2003-11-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
824
825         * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
826         (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
827         New variables.
828         (main): Initialize them.
829         (find_attr): Canonicalize the attribute name string.
830         (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
831         string arguments.
832         (attr_printf, attr_eq): Use DEF_ATTR_STRING.
833         (check_attr_test, check_attr_value, make_length_attrs,
834         write_length_unit_log, simplify_by_exploding, gen_attr,
835         write_test_expr, write_attr_value, write_eligible_delay,
836         write_complex_function, make_internal_attr,
837         write_const_num_delay_slots): Changed due to change of type of
838         find_attr.
839         (fill_attr, evaluate_eq_attr, simplify_and_tree,
840         attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
841         strcmp_check.
842
843 2003-11-23  Kazu Hirata  <kazu@cs.umass.edu>
844
845         PR target/13122
846         * config/h8300/h8300.c (push): Call push_h8300hs_normal in
847         normal mode.
848         (pop): Call pop_h8300hs_normal in normal mode.
849         * config/h8300/h8300.md: Likewise.
850         (pushqi1_h8300hs_normal): New.
851         (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
852         (pushhi1_h8300hs_normal): New.
853         (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
854         (push_h8300hs_normal): New.
855         (pop_h8300hs_normal): Likewise.
856
857 2003-11-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
858
859         * genattrtab.c (count_sub_rtxs): Removed.
860
861 2003-11-23  Richard Earnshaw  <rearnsha@arm.com>
862
863         * recog.c (preprocess_constraints): Only zero those elements of
864         recog_op_alt that are needed for this insn.
865         * arm.c (note_invalid_constants): A function can't contain invalid
866         constants if it has no constraints.
867
868 2003-11-22  Jan Hubicka  <jh@suse.cz>
869
870         * i386.c (classify_argument): Pass __float128 in memory.
871         (ix86_return_in_memory): Likewise.
872         (ix86_libcall_value): Likewsie.
873
874 2003-11-22  Kazu Hirata  <kazu@cs.umass.edu>
875
876         * config/h8300/h8300.c (dosize): Convert to ISO-C.
877
878 2003-11-22  J"orn Rennecke <joern.rennecke@superh.com>
879
880         * flow.c (update_life_info): Amend comment about when a register
881         can become dead.
882
883 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
884
885         * doc/.cvsignore: Delete.
886
887 2003-11-21  Daniel Berlin  <dberlin@dberlin.org>
888             David Edelsohn  <edelsohn@gnu.org>
889
890         * dwarf2out.c (add_location_or_const_value_attribute): Add support
891         for PARALLEL.
892
893 2003-11-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
894
895         * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
896         (TARGET_LIBGCC2_CFLAGS): Define.
897
898         * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
899         (__do_global_ctors): Likewise.
900
901 2003-11-21  Mark Wielaard  <mark@klomp.org>
902
903         * doc/invoke.texi (-O2): Doesn't enable -fweb.
904
905 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
906
907         * doc/invoke.texi: Mention dV and dZ.
908
909 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
910
911         * doc/invoke.texi: Update dump file names.
912         Remove de, dW, and dX.
913
914 2003-11-20  James E Wilson  <wilson@specifixinc.com>
915
916         PR c/13133
917         * reload1.c (reload): Delete special handling for setjmp.
918
919 2003-11-21  Andreas Tobler  <a.tobler@schweiz.ch>
920
921         * mklibgcc.in: Evaluate shlib_slibdir_qual during link
922         step too.
923         * config/t-slibgcc-darwin: Adjust install path.
924         * config/rs6000/t-darwin: Revert multilib matches since
925         it is not used on darwin.
926
927 2003-11-20  Richard Henderson  <rth@redhat.com>
928
929         * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
930         * Makefile.in (OBJS-common, GTFILES): Don't reference them.
931         (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
932         (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
933         * flow.c: Don't include ssa.h.
934         (set_phi_alternative_reg): Remove.
935         (calculate_global_regs_live): Don't call it.
936         (mark_used_regs): Don't handle PHI.
937         * gengtype.c (open_base_files): Don't reference ssa.h.
938         * rtl.def (PHI): Remove.
939         * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
940         * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
941         * opts.c (common_handle_option): Likewise.
942         * toplev.c (f_options): Likewise.
943         (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
944         (dump_file): Update to match.
945         (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
946         (rest_of_handle_ssa): Remove.
947         (rest_of_compilation): Don't call it.
948         * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
949         * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
950         * doc/passes.texi (SSA optimizations): Remove.
951
952 2003-11-20  Bob Wilson  <bob.wilson@acm.org>
953
954         * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
955         * configure: Regenerate.
956
957 2003-11-20  Kelley Cook  <kcook@gcc.gnu.org>
958
959         * Makefile.in (Makefile): Pass along CONFIG_SHELL.
960
961 2003-11-20 David Mosberger  <davidm@hpl.hp.com>
962
963         * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
964         (SHLIB_LC): Define.
965         * unwind-libunwind.c (_Unwind_GetCFA): Implement.
966         (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
967
968 2003-11-20  Fariborz Jahanian  <fjahanian@apple.com>
969             David Edelsohn  <edelsohn@gnu.org>
970
971         * calls.c (expand_call): Allocate new temp in pass1.
972         (store_one_arg): If PARALLEL, calculate excess using mode size of
973         rtvec elt.
974         * expr.c (emit_push_insn): If PARALLEL, calculate offset using
975         mode size of rtvec elt.
976         * function.c (assign_parms): Use parm in register, if available.
977
978 2003-11-20  Kazu Hirata  <kazu@cs.umass.edu>
979
980         * config/h8300/lib1funcs.asm (MOVP): Remove.
981         (ADDP): Likewise.
982         (CMPP): Likewise.
983
984 2003-11-20  Richard Earnshaw  <rearnsha@arm.com>
985
986         * arm.c (use_return_insn): New argument, SIBLING.  Support returning
987         with a single instruction if the stack has been decremented by 4
988         and we have a frame pointer.  Update all callers.
989         (output_return_instruction): Likewise.
990         (arm_output_epilogue): Change argument to SIBLING.  Calculate
991         really_return from the new argument.  Update all callers.
992         * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
993         * arm.md (sibcall_epilogue): Call use_return_insn directly, and
994         pass the sibling call.
995         * arm-protos.h (use_return_insn, arm_output_epilogue): Update
996         prototypes.
997
998 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
999
1000         * Makefile.in (extraclean): Delete.
1001         * configure.in (target_list): Remove extraclean.
1002         * configure: Regenerate.
1003         * doc/makefile.texi, doc/sourcebuild.texi: Update.
1004         * objc/Make-lang.in (objc.extraclean): Delete.
1005
1006 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1007
1008         * Makefile.in (lang_checks): Add.
1009         (check-c++, check-f77, check-java, check-g++, check-g77,
1010         check-objc): Remove hardcoded targets.
1011         * doc/sourcebuild.texi: Document testsuite hooks.
1012         * objc/Make-lang.in (check-objc, lang_checks): Add.
1013
1014 2003-11-19  Scott Snyder  <snyder@fnal.gov>
1015
1016         PR target/13131
1017         * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
1018         flag, not a constant.
1019
1020 2003-11-19  Kelley Cook  <kcook@gcc.gnu.org>
1021
1022         * config/arc/arc-protos.h: Update to C90 prototypes.
1023         * config/arc/arc.c: Likewise.
1024         * config/arc/initfini.c: Likewise.
1025
1026 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1027
1028         * stmt.c (expand_goto): Memory clobbers added.
1029
1030 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1031
1032         * reload.c (find_reloads): Added missing type casts.
1033
1034 2003-11-19  James E Wilson  <wilson@specifixinc.com>
1035
1036         * combine.c (sets_function_arg_p): Delete unused function.
1037
1038 2003-11-19  Eric Christopher  <echristo@redhat.com>
1039
1040         * reload1.c (reload): Revert 2 previous checkins.
1041
1042 2003-11-19  Nathanael Nerode  <neroden@gcc.gnu.org>
1043
1044         * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
1045         whether directive begins at the beginning of a line.
1046
1047 2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
1048
1049         * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
1050
1051 2003-11-19  Gerald Pfeifer  <gp@suse.de>
1052
1053         * doc/install.texi (Specific): Remove information on old versions
1054         of glibc versus old versions of GCC.
1055
1056 2003-11-19  Richard SAndiford  <rsandifo@redhat.com>
1057
1058         * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
1059         the register lowpart is a TRULY_NOOP_TRUNCATION.
1060
1061 2003-11-19  Richard Henderson  <rth@redhat.com>
1062
1063         * config/i386/i386.c (print_reg): Handle QI and HI modes for
1064         non Q regs.
1065
1066 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
1067
1068         * config/config.gcc (powerpc-*-darwin*): Add libgcc build
1069         specification file.
1070         * config/t-slibgcc-darwin: New file, libgcc build specification.
1071         * config/t-darwin: Add libgcc2 flag -fPIC.
1072         * config/rs6000/t-darwin: Multilib matches float.
1073         * libgcc-darwin.ver: New file, contains libgcc symbols.
1074
1075 2003-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
1076
1077         * config/ns32k/ns32k.h: Remove obsolete comment.
1078
1079 2003-11-18  Roger Sayle  <roger@eyesopen.com>
1080
1081         PR middle-end/11821
1082         * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
1083         size for calls to libgcc's div & mod subroutines when using -Os.
1084
1085 2003-11-18  Jan Hubicka  <jh@suse.cz>
1086
1087         * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
1088
1089 2003-11-18  Marc Espie  <espie@openbsd.org>
1090
1091         * config/rs6000/sysv4.h: OpenBSD hooks.
1092
1093 2003-11-18  Richard Henderson  <rth@redhat.com>
1094
1095         * expr.c (expand_expr): Don't look through constant arrays if
1096         they don't bind locally.
1097
1098 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1099
1100         * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
1101         when seeing if truncation or extension.
1102
1103 2003-11-17  Eric Christopher  <echristo@redhat.com>
1104
1105         * reload1.c (reload): Fix previous change.
1106
1107 2003-11-17  Scott Snyder  <snyder@fnal.gov>
1108
1109         PR debug/11325
1110         * dwarf2out.c (struct die_struct): Add die_definition field.
1111         (add_AT_specification): New.
1112         (gen_subprogram_die, gen_variable_die,
1113         gen_struct_or_union_type_die): Use it.
1114         (prune_unused_types_mark): If we're marking a forward declaration,
1115         also mark the full definition, if it exists.
1116
1117 2003-11-16  Nick Clifton  <nickc@redhat.com>
1118
1119         * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
1120         * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
1121         Remove prototype.
1122         * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
1123         to xstormy16_build_builtin_va_list and make static.
1124         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
1125
1126 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1127
1128         * config/h8300/h8300-protos.h: Add the prototype for
1129         same_cmp_following_p.
1130         * config/h8300/h8300.c (same_cmp_following_p): New.
1131         * config/h8300/h8300.md (peephole2): Use it.
1132
1133 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1134
1135         * config/h8300/h8300.md: Don't use REGNO when its operand is
1136         not guaranteed to be a REG.
1137
1138 2003-11-16  Richard Sandiford  <rsandifo@redhat.com>
1139
1140         * Makefile.in (expr.o): Depend on $(TARGET_H).
1141         * target.h (return_in_msb): New target hook.
1142         * target-def.h (TARGET_RETURN_IN_MSB): New macro.
1143         (TARGET_CALLS): Include it.
1144         * calls.c (shift_returned_value): New function.
1145         (expand_call): Use it.
1146         * expr.c: Include target.h.
1147         (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
1148         deciding what padding is needed.  Change the name of the local
1149         padding variable from big_endian_correction to padding_correction.
1150         * stmt.c (shift_return_value): New function.
1151         (expand_return): Use it.  Adjust memory->register copy in the same
1152         way as copy_blkmode_from_reg.  Only change the return register's
1153         mode if it was originally BLKmode.
1154         * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
1155         * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
1156         (mips_fpr_return_fields): New, split out from mips_function_value.
1157         (mips_return_in_msb, mips_return_fpr_pair): New functions.
1158         (mips_function_value): Rework to use the functions above.
1159         * config/mips/irix6-libc-compat.c: Delete.
1160         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
1161
1162 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1163
1164         * doc/install.texi (--enable-checking): Update valgrind's URL.
1165
1166 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1167
1168         * config/h8300/h8300.md: Fix warnings by replacing -2147483648
1169         with -2147483647 - 1.
1170
1171 2003-11-16  Gerald Pfeifer  <gerald@pfeifer.com>
1172
1173         Fix links in online manuals.
1174         * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
1175         (Precompiled Headers): @pxref to cpp, not cpp.info.
1176
1177 2003-11-16  Jason Merrill  <jason@redhat.com>
1178
1179         * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
1180         files in each directory and TAGS files that include them for each
1181         front end.
1182
1183 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
1184
1185         * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
1186         3 of S2L.
1187         (modnorm): Likewise.
1188         (exitdiv): Look at bit 3 of S2L only.
1189
1190 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
1191
1192         * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
1193         (DO_GLOBAL_DTORS_BODY): Likewise.
1194
1195 2003-11-15  Joseph S. Myers  <jsm@polyomino.org.uk>
1196
1197         * doc/install.texi (Prerequisites): Refine documentation of
1198         autoconf, automake and perl requirements.  Document required
1199         gettext version.
1200
1201 <2003-11-14  Jason Merrill  <jason@redhat.com>
1202
1203         * function.c (assign_parms): Use TREE_TYPE to determine the real
1204         type of the argument object.
1205
1206 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1207
1208         * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
1209         iteration.
1210
1211 2003-11-14  Fariborz Jahanian <fjahanian@apple.com>
1212
1213         * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
1214           New routine to save vararg registers on stack. Support for
1215           -mpowerpc64 in mixed mode.
1216
1217 2003-11-14  Bernardo Innocenti  <bernie@develer.com>
1218
1219         * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
1220         for MOTOROLA versus MIT syntax.  Improves readability and provides
1221         better compile-time error checking for both code paths.
1222
1223 2003-11-14  Kelley Cook  <kcook@gcc.gnu.org>
1224
1225         * config/frv/frv-protos.h: Update for C90.
1226         * config/frv/frv.h: Likewise.
1227         * config/frv/frvbegin.c: Likewise.
1228         * config/frv/frv.c: Likewise.
1229         (frv_adjust_field_align): Delete unused variable.
1230
1231 2003-11-14  Geoffrey Keating  <geoffk@apple.com>
1232
1233         * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
1234         to each place where TARGET_LONG_DOUBLE_128 is used with
1235         DEFAULT_ABI == ABI_AIX.
1236
1237         * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
1238         message comply with GNU standards.
1239
1240 2003-11-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1241
1242         PR/6552
1243         * function.c (struct epi_info): New field const_equiv.
1244         (update_epilogue_consts): New function.
1245         (keep_stack_depressed): Clear new field and verify scratch register
1246         doesn't have it set.
1247         Call new function via note_stores.
1248         (handle_epilogue_set): Allow setting SP equiv reg in different mode.
1249         Allow PLUS where second operand is register known set to constant.
1250         (emit_equiv_load): Write load using proper mode if source different.
1251         * config/mips/mips.md (return_internal): Put (return) first.
1252
1253 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1254
1255         * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
1256
1257 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1258
1259         * config/h8300/lib1funcs.asm (modsi3): Don't save unused
1260         registers.
1261         (divsi3): Likewise.
1262         (reti): Don't restore unused registers.
1263
1264 2003-11-14  Nick Clifton  <nickc@redhat.com>
1265
1266         * config/fr30/fr30.c: Include toplev.h
1267
1268 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
1269
1270         * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
1271
1272 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
1273
1274         * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
1275         function definition syntax.
1276
1277 2003-11-14  Eric Christopher  <echristo@redhat.com>
1278
1279         * reload1.c (reload): Revert previous patch. Make
1280         check for assignment into reg_equiv_address stricter.
1281
1282 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
1283
1284         * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
1285
1286 2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
1287
1288         * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
1289         section names.
1290
1291 2003-11-14  Jason Merrill  <jason@redhat.com>
1292
1293         PR middle-end/12526
1294         * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
1295         * calls.c (call_expr_flags): New fn.
1296         * tree.h: Declare it.
1297
1298 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1299
1300         * config/h8300/lib1funcs.asm (__udivsi3): Remove.
1301         (divmodsi3): Change the name to ___udivsi3.
1302         Update all callers.
1303
1304 2003-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1305
1306         * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
1307         __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
1308         __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
1309         __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
1310         __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
1311         __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
1312         Const-ify and/or initialize automatic variables at declaration.
1313
1314 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1315
1316         * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
1317         of er4 with er3.  Adjust all callers.
1318
1319 2003-11-13  Andrew Pinski <apinski@apple.com>
1320
1321         * config/darwin.c (machopic_output_possible_stub_label):
1322         Allow stub symbol be not defined when outputting possible
1323         stub label.
1324
1325 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1326
1327         * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
1328         instead of exitdiv.
1329         (___umodsi3): Likewise.
1330         (exitdiv): Do not restore any register.
1331         (reti): Restore registers.
1332
1333 2003-11-13  Steven Bosscher  <stevenb@suse.de>
1334
1335         * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
1336
1337 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1338
1339         * config/h8300/lib1funcs.asm: Fix comment typos.
1340
1341 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1342
1343         * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
1344         unused registers.  Don't jump to exitdiv.
1345         (umodsi3): Likewise.
1346
1347 2003-11-13  Mark Mitchell  <mark@codesourcery.com>
1348             Kean Johnston <jkj@sco.com>
1349
1350         PR c/13029
1351         * toplev.c (check_global_declarations): Do not warn about unused
1352         static consts.
1353
1354 2003-11-13  Pavel Pisa  <pisa@cmp.felk.cvut.cz>
1355             Kazu Hirata  <kazu@cs.umass.edu>
1356
1357         * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
1358         the approximate quotient method.
1359
1360 2003-11-13  Richard Earnshaw  <rearnsha@arm.com>
1361
1362         * combine.c (distribute_notes): When re-distributing the notes from
1363         an insn we are about to delete, ensure we can't end up with a cyclic
1364         list of notes.
1365
1366 2003-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1367
1368         PR optimization/12926
1369         * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
1370         the UNCHANGING_RTX_P flag on memory references to read-only
1371         components that are not addressable.
1372
1373 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1374
1375         * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
1376         DenHighNonZero.
1377
1378 2003-11-13  Jan Hubicka  <jh@suse.cz>
1379
1380         PR opt/12275
1381         * c-decl.c (finish_decl): Use change_decl_assembler_name.
1382         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
1383         * varasm.c (make_decl_rtl): Likewise.
1384         * cgraph.c (change_decl_assembler_name): New function.
1385         * tree.h (set_decl_assembler_name): Kill dead declaration.
1386         (change_decl_assembler_name): Declare.
1387
1388         * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1389         * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1390
1391 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1392
1393         * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
1394         an unused register.
1395
1396 2003-11-12  Richard Sandiford  <rsandifo@redhat.com>
1397
1398         PR bootstrap/12752
1399         * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
1400         (MULTILIB_OSDIRNAMES): Reorder accordingly.
1401
1402 2003-11-12  Janis Johnson  <janis187@us.ibm.com>
1403
1404         * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
1405         (rs6000_stack_info): Remove.  (debug_stack_info): Remove.
1406         (rs6000_emit_eh_reg_restore): Add
1407         * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
1408         of vars_size and total_size to HOST_WIDE_INT.
1409         (emit_frame_save): Change parameter size to HOST_WIDE_INT.
1410         (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
1411         (debug_stack_info): Make static; change output format of HOST_WIDE_INT
1412         values.
1413         (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
1414         (rs6000_initial_elimination_offset): New, with code formerly in
1415         INITIAL_ELIMINATION_OFFSET.
1416         * rs6000.h (rs6000_stack_t): Remove.
1417         (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
1418         rs6000_initial_elimination_offset.
1419         * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
1420         rs6000_emit_eh_reg_restore.
1421
1422 2003-11-12  Mike Stump  <mrs@apple.com>
1423
1424         * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
1425         is the argumnt we are processing so that warnings and errors
1426         will have that information.
1427         * c-tree.h (c_convert_parm_for_inlining): Add argnum.
1428         * lang-hooks-def.h
1429         (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
1430         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
1431         * langhooks.h (convert_parm_for_inlining): Likewise.
1432         * tree-inline.c (initialize_inlined_parameters): Compute and
1433         pass argnum down.
1434
1435 2003-11-12  Alexey Starovoytov  <alexey.starovoytov@sun.com>
1436             Roger Sayle  <roger@eyesopen.com>
1437
1438         PR optimization/12953
1439         * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
1440         before switch by FUNCTION_CODE.
1441
1442 2003-11-12  Richard Earnshaw  <rearnsha@arm.com>
1443
1444         * arm.md (storehi): Avoid use of explicit subreg.
1445         (storehi_bigend, storeinthi, movhi_bigend): Likewise.
1446
1447 2003-11-12  J"orn Rennecke <joern.rennecke@superh.com>
1448
1449         * config/sh/sh.md (prefetch): New pattern.
1450
1451 2003-11-11  Eric Christopher  <echristo@redhat.com>
1452
1453         * reload1.c (reload): Verify that addresses for
1454         reg_equiv_* are valid for the architecture.
1455
1456 2003-11-11  Eric Christopher  <echristo@redhat.com>
1457
1458         * function.c (purge_addressof_1): Add libcall check.
1459         Remove test for cached replacements on fallback case.
1460         Simplify mode comparisons. Add libcall test for
1461         paradoxical subregs.
1462
1463 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1464
1465         * config/h8300/t-h8300: Fix an obsolete comment.
1466
1467 2003-11-11  James E Wilson  <wilson@specifixinc.com>
1468
1469         * expmed.c (store_bit_field, extract_bit_field): Revert last two
1470         changes.
1471
1472 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1473
1474         * config/h8300/lib1funcs.asm: Replace DenHighZero with
1475         DenHighNonZero.
1476
1477 2003-11-11  Jan Hubicka  <jh@suse.cz>
1478
1479         * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
1480         really_no_inline.
1481
1482 2003-11-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1483
1484         * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
1485         generating 64-bit code.
1486
1487 2003-11-10  David Edelsohn  <edelsohn@gnu.org>
1488
1489         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
1490         accidental commit in previous change.
1491
1492 2003-11-10  Fariborz Jahanian <fjahanian@apple.com>
1493
1494         * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
1495         * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
1496         address recognition.
1497         (macho_lo_sum_memory_operand): Routine to recognize macho-style
1498         address recognition.
1499
1500 2003-11-10  Richard Henderson  <rth@redhat.com>
1501
1502         * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
1503
1504 2003-11-10  Matt Austern  <austern@apple.com>
1505
1506         * config/darwin-protos.h (darwin_assemble_visibility): Declare.
1507         * config/darwin.c (darwin_assemble_visibility): Define.  Warn for
1508         anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
1509         * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
1510         darwin_assemble_visibility instead of default.
1511
1512 2003-11-10  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
1513
1514         PR target/12865
1515         * config/sparc/sparc.c (sparc_initialize_trampoline): Call
1516         __enable_execute_stack only after writing onto the stack.
1517         (sparc64_initialize_trampoline): Likewise.
1518
1519 2003-11-09  Roger Sayle  <roger@eyesopen.com>
1520
1521         * loop.c (check_dbra_loop): Try swapping the comparison operands
1522         of the loop condition to identify a suitable induction variable.
1523         * unroll.c (loop_iterations): Likewise.
1524
1525 2003-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1526
1527         * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
1528         sparc64 #cpu and #machine assertions.
1529
1530 2003-11-09  Richard Henderson  <rth@redhat.com>
1531
1532         * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
1533
1534 2003-11-09  Jan Hubicka  <jh@suse.cz>
1535
1536         * tree-optimize.c (tree_rest_of_compilation): Fix warning.
1537
1538         * cgraphunit.c (cgraph_expand_function): Use
1539         cgraph_possibly_inlined_p.
1540         * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
1541
1542         * opts.c (common_handle_option): Do not set max-inline-insns.
1543         * params.def: Update comments.
1544         (PARAM_MAX_INLINE_INSNS): Kill.
1545         * invoke.texi (max-inline-insns): Kill.
1546
1547 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
1548
1549         PR c/3190
1550         PR c/8714
1551         * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
1552         * invoke.texi: Update.
1553
1554 2003-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1555
1556         PR optimization/12630
1557         * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
1558         Handle length computation 64-bit moves.
1559         (compute_clrstr_length, output_block_clear): Implement block clear.
1560         (output_block_move): Handle 64-bit moves.
1561         (pa_adjust_insn_length): Use compute_movstr_length and
1562         compute_clrstr_length.
1563         * pa.md (movstrsi): Revise operand order and comments.  Don't use
1564         match_scratch.
1565         (movstrsi_internal): Delete.
1566         (movstrsi_prereload, movstrsi_postreload): New insns.  Define splitter
1567         and peephole2 patterns to transform prereload to postreload form.
1568         (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
1569         clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
1570         clrstrdi_postreload): New patterns for 64-bit block move, and block
1571         clear.
1572         * pa-protos.h (output_block_clear): New prototype.
1573
1574 2003-11-08  Andreas Schwab  <schwab@suse.de>
1575
1576         * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
1577         XCOFF_DEBUGGING_INFO.
1578
1579 2003-11-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1580
1581         * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
1582
1583 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
1584
1585         * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
1586         redundant parens.
1587
1588         * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
1589         (find_file_in_dir): Likewise.
1590         (_cpp_find_file): Print message if no header file is found
1591         but an invalid PCH file was.
1592
1593 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
1594
1595         * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
1596         expressions as lvalues.
1597         (internal_build_compound_expr): Remove special handling for
1598         non-pedantic case.
1599         * doc/extend.texi: Document that all extended lvalues are now
1600         deprecated.
1601
1602 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
1603
1604         PR 11654
1605         * dbxout.c (struct dbx_file): Do not save for PCH.
1606         (current_file): Likewise.
1607         (dbxout_init): Don't allocate struct dbx_file using GC.
1608         (dbxout_start_source_file): Likewise.
1609
1610 2003-11-07  Falk Hueffner  <falk@debian.org>
1611
1612         * config/alpha/elf.h, config/alpha/unicosmk.h,
1613         config/alpha/vms.h: Convert to ISO C90.
1614
1615 2003-11-07  Nathanael Nerode  <neroden@gcc.gnu.org>
1616
1617         * config/arm/pe.h: Convert to ISO C90.
1618
1619 2003-11-07  J"orn Rennecke <joern.rennecke@superh.com>
1620
1621         * sh-protos.h (sh_pch_valid_p): Declare.
1622         * sh.c ("intl.h"): Include.
1623         (TARGET_PCH_VALID_P): Override.
1624         (sh_target_switches): New variable.
1625         (target_switches): Define.
1626         (sh_pch_valid_p): New function.
1627
1628         * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
1629
1630 2003-11-07  Jan Hubicka  <jh@suse.cz>
1631
1632         * i386.c (x86_64_sign_extended_value):  Return false from tls variables.
1633         (x86_64_zero_extended_value):  likewise.
1634
1635 2003-11-07  Richard Sandiford  <rsandifo@redhat.com>
1636
1637         * config/mips/mips.md (loadgp): Take $25 as a second operand.
1638         * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
1639
1640 2003-11-06  Matt Austern <austern@apple.com>
1641
1642         * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
1643         field instead of hanging an attribute object off the decl.
1644         * tree.h (DECL_VISIBLITY): New accessor macro for
1645         symbol_visibility field in struct tree_decl.
1646         (enum symbol_visibility): Move definition to before tree_decl.
1647         (struct tree_decl): Define new two-bit field, symbol_visibility.
1648         (decl_visibility): Remove declaration.
1649         * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
1650         instead of decl_visibility.
1651         (default_binds_local_p_1):  Use DECL_VISIBILITY instead of
1652         decl_visibility.
1653         (decl_visibility): Remove.
1654
1655 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1656
1657         * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
1658         where register 14 will be saved.
1659
1660 2003-11-06  Geoffrey Keating  <geoffk@apple.com>
1661
1662         * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
1663         (USE_ALTIVEC_FOR_ARG_P): Likewise.
1664         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
1665         Take a pointer as the CUM parameter.  Update callers.
1666         (USE_ALTIVEC_FOR_ARG_P): Likewise.  Also correct for Darwin/AIX
1667         32-bit ABIs.
1668         (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P.  Correct case
1669         of vector parameters as named arguments of stdarg function.
1670         (function_arg): Likewise.
1671
1672         * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
1673         -maltivec is specified, not the non-existent -faltivec.
1674
1675 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1676
1677         * config/s390/s390-protos.h (s390_function_value): Declare.
1678         * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
1679         (s390_return_in_memory): New function.
1680         (s390_function_value): New function.
1681         (s390_function_arg_float): Return false for all arguments larger
1682         than 8 bytes.
1683         (s390_function_arg_pass_by_reference): Likewise.  Return true for
1684         all vector arguments.
1685         (s390_function_arg_integer): New function.
1686         (s390_function_arg_advance): Call it.  Add sanity checks.
1687         (s390_function_arg): Likewise.
1688         * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
1689         (LIBCALL_VALUE): Likewise.
1690         (RET_REG): Remove.
1691         (RETURN_IN_MEMORY): Remove.
1692
1693 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1694
1695         * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
1696         return type to HOST_WIDE_INT.
1697         * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
1698         Make initialized a bool.  Make register masks unsigned ints.
1699         (compute_frame_size): Make same mask change here.  Use HOST_WIDE_INT
1700         where appropriate.
1701         (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
1702         (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
1703
1704 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1705
1706         * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
1707         negation.
1708
1709 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1710
1711         * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
1712
1713 2003-11-06  Momchil Velikov  <velco@fadata.bg>
1714
1715         * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
1716         for VR4111 too.
1717
1718 2003-11-06  Jan Hubicka  <jh@suse.cz>
1719
1720         * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
1721         missing casts.
1722
1723 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
1724
1725         * genmodes.c: Change the word "bitsize" to "precision" throughout.
1726         * machmode.def: Likewise.
1727         * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
1728         (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
1729         (GET_MODE_PRECISION): New macro.
1730         (mode_bitsize): Renamed mode_precision.
1731         * stor-layout.c (mode_for_size, smallest_mode_for_size):
1732         Use GET_MODE_PRECISION; clarify comments.
1733
1734 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1735
1736         * doc/install-old.texi: Remove old documentation of building
1737         cross-compilers.
1738         * doc/install.texi: Move some of it to here.
1739
1740 2003-11-05  Per Bothner  <pbothner@apple.com>
1741
1742         PR preprocessor/12891
1743         * c-opts.c (finish_options):  Set include_cursor to disable premature
1744         calls to push_command_line_include from cpp_scan_nooutput.
1745         Fixes bug reported by DJ Delorie.
1746
1747 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
1748
1749         * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
1750         code supporting old-style varargs.
1751
1752         * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
1753         an intermediate register for better optimisation.
1754
1755 2003-11-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1756
1757         PR optimization/10080
1758         * cfgloopanal.c (variable_initial_value, variable_initial_values,
1759         simple_loop_exit_p): Record the fact that initial value is extended
1760         from inner mode.
1761         (count_strange_loop_iterations, count_loop_iterations): Handle
1762         ivs that iterate in a narrower mode. Fix handling of overflows.
1763         Improve handling of NE conditions.
1764         (inverse, fits_in_mode_p): New static functions.
1765         (simple_increment): Detect variables that iterate in a narrower mode.
1766         * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
1767
1768 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
1769
1770         * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
1771         error.
1772
1773         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
1774         needs VRSAVE.
1775
1776 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1777
1778         * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
1779         conditional expressions as lvalues.
1780
1781 2003-11-05  Kazu Hirata  <kazu@cs.umass.edu>
1782
1783         * tsystem.h: Add the prototype of strlen.
1784         * unwind-pe.h (read_encoded_value_with_base): Add an
1785         appropriate cast to handle a case where the pointer size is
1786         smaller than sizeof (int).
1787
1788 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
1789
1790         * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
1791         (mips_delegitimize_address): Delete.
1792         (mips_gotoff_global, mips_load_got_page): Declare.
1793         (mips_load_got_global, mips_rewrite_small_data): Declare.
1794
1795         * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
1796         (DANGEROUS_FOR_LA25_P): Use global_got_operand.
1797         (PREDICATE_CODES): Add global_got_operand, local_got_operand and
1798         small_data_pattern.  Remove CONST from const_arith_operand's entry.
1799
1800         * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
1801         (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
1802         (mips_constant_type): Delete.
1803         (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
1804         SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
1805         (NUM_SYMBOL_TYPES): New macro.
1806         (mips_address_type): Remove ADDRESS_INVALID.
1807         (machine_function): Add has_gp_insn_p.
1808         (mips_constant_info): Delete.
1809         (mips_address_info): Add the address type as an extra field.  Replace
1810         the c field with symbol_type.
1811         (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
1812         (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
1813         (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
1814         (mips_split_const, mips_symbolic_constant_p): New functions.
1815         (mips_symbolic_address_p): Take the symbol type and mode as arguments.
1816         (mips_classify_address): Return true if the address is valid, storing
1817         its type in INFO.  Use mips_symbolic_constant_p.  Use mips_lo_relocs[]
1818         to test whether a LO_SUM address is allowed.
1819         (mips_symbol_insns): Return 0 for general mips16 symbols.
1820         Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
1821         Handle the new SYMBOL_GOTOFF_*s.
1822         (mips_address_insns): Update call to mips_classify_address.
1823         (mips_const_insns): Be more fussy about HIGH constants.  Remove use
1824         of mips_classify_constant.  Be more accurate about CONSTs.
1825         (mips_global_pic_constant_p): Delete.
1826         (const_arith_operand): Only accept CONST_INTs.
1827         (call_insn_operand): Remove call to mips_classify_constant.
1828         Let mips_symbolic_constant_p check for invalid offsets.
1829         (move_operand): Check for general_operands first.  Only accept symbolic
1830         constants if they satisfy mips_symbolic_constant_p and cannot be split.
1831         (symbolic_constant): Use mips_symbolic_constant_p.
1832         (global_got_operand, local_got_operand): New predicates.
1833         (stack_operand): Update call to mips_classify_address.
1834         (mips_legitimate_address_p): Likewise.
1835         (mips_reloc, mips_lui_reloc): Delete.
1836         (mips_force_temporary): Only use the given temporary if no_new_pseudos.
1837         Use emit_move_insn.
1838         (mips_split_symbol, mips_unspec_address): New functions.
1839         (mips_unspec_offset_high): New function.
1840         (mips_load_got): Replace reloc argument with a symbol_type.
1841         Use mips_unspec_address to create the address and put it in a
1842         LO_SUM with the base register.
1843         (mips_load_got16, mips_load_got32): Delete.
1844         (mips_emit_high, mips_legitimize_symbol): Delete.
1845         (mips_gotoff_global): New function.
1846         (mips_load_got_page, mips_load_got_global): New functions.
1847         (mips_legitimize_symbol): Inline handling of LO_SUM splits.
1848         (mips_legitimize_const_move): Likewise.  Remove HIGH handling.
1849         Inline code to handle constants plus invalid offsets.  Use
1850         mips_split_symbol to legitimize constant pool addresses.
1851         (mips_delegitimize_address): Delete.
1852         (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
1853         a cost of 1 insn.  Give the rest a cost of CONSTANT_POOL_ADDRESS.
1854         (mips_subword): Pass memrefs through mips_rewrite_small_data.
1855         (mips_output_move): Remove use of mips_classify_constant.
1856         (mips_expand_call): Use mips_unspec_offset_high to calculate the
1857         high part of the GOT address for calls to global functions.
1858         (override_options): Initialize mips_split_p[], mips_lo_relocs[]
1859         and mips_hi_relocs[].
1860         (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
1861         Remove use of mips_classify_constant.
1862         (mips_reloc_string): Delete.
1863         (print_operand_reloc): New function.
1864         (print_operand_address): Update call to mips_classify_address.
1865         (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
1866         (small_data_pattern): New predicate.
1867         (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
1868         (mips_function_has_gp_insn): New function.
1869         (mips_global_pointer): Use it.
1870         (mips_gp_insn): Delete.
1871         (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
1872         single loadgp pattern to initialize $gp.  Pass it the offset of _gp
1873         from the start of the current function.
1874         (mips16_gp_pseudo_reg): Revert last patch.
1875
1876         * config/mips/mips.md (RELOC_*): Delete.
1877         (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
1878         (got): New insn attribute.
1879         (type): Set to "load" if got == load.
1880         (length): Set to 4 if got == load, 8 if got == xgot_high.
1881         (lui[sd]i): Delete.
1882         (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
1883         (*got_disp[sd]i, *got_page[sd]i): Likewise.
1884         (*low[sd]i): Change constraints to "d".  Add a new define_split to
1885         rewrite small data constants into LO_SUMs.
1886         (loadgp): New insns.
1887
1888 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1889
1890         * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
1891
1892 2003-11-04  DJ Delorie  <dj@redhat.com>
1893
1894         * config/v850/v850.md (mulhisi3): Expand the const_int case
1895         separately to avoid trying to sign extend the const.
1896
1897 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
1898
1899         * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
1900         addresses to be shared.
1901         (force_const_mem): Return a copy of the pool entry.
1902
1903 2003-11-03  Andreas Jaeger  <aj@suse.de>
1904
1905         * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
1906
1907 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
1908
1909         * Makefile.in (cpp.dvi): New target split from cpp.info.
1910         (gcc.dvi):  New target split from gcc.info.
1911         (gccint.dvi): New target split from gccint.info.
1912         (cppinternals.dvi): New target split from cppinternals.info
1913         (gccinstall.info): New specific rule.
1914         (gccinstall.dvi): Likewise.
1915         (dvi): Move targets to $(docobjdir).
1916         ($(docobjdir)/%.dvi): New implicit rule.
1917
1918 2003-11-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1919
1920         * doc/gty.texi (tag, desc): Say more about role of desc values in
1921         selecting between tags.
1922
1923 2003-11-03  Alexander Kabaev  <ak03@gte.com>
1924
1925         * real.c (encode_ieee_single): Ensure proper promotion.
1926
1927 2003-11-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1928
1929         * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
1930         and Andrew Pinski.
1931
1932 2003-11-03  Syd Polk  <spolk@apple.com>
1933
1934         * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
1935         marketing names to the list of supported processors.
1936         * config/rs6000/rs6000.h: Ditto.
1937         * doc/invoke.texi: Ditto.
1938         * config.gcc: Ditto.
1939
1940 2003-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1941
1942         * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
1943         Merge two substitutions.
1944         * fixinc/fixincl.x: Regenerate.
1945         Fixes PR bootstrap/12666.
1946
1947 2003-11-03  Joseph S. Myers  <jsm@polyomino.org.uk>
1948
1949         * doc/install-old.texi: Remove VMS documentation.
1950
1951 2003-11-03  Jan Hubicka  <jh@suse.cz>
1952
1953         * i386.c (override_options):  Remove hack enabling 128bit long double
1954         commited by accident.
1955
1956 2003-11-02  Per Bothner  <per@bothner.com>
1957
1958         * c-opts.c (needValue):  Do cpp_find_main_file before processing
1959         any imacros flags, so pfile->main_file is set for the latter.
1960
1961 2003-11-03  Andreas Jaeger  <aj@suse.de>
1962             Zack Weinberg  <zack@codesourcery.com>
1963
1964         * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
1965         (SYSCALLS.c.X-warn): Suppress warnings.
1966
1967 2003-11-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1968
1969         PR optimization/12845
1970         * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
1971
1972 2003-11-02  Zack Weinberg  <zack@codesourcery.com>
1973
1974         * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
1975         * config/i386/i386.c (print_reg): Abort on a virtual register
1976         if code != -1; not if file == asm_out_file.
1977         * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
1978         (DEBUG_PRINT_REG): Delete, unused.
1979
1980 2003-11-02  Andreas Schwab  <schwab@suse.de>
1981
1982         * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
1983         empty to avoid conflict with the definition from configure.
1984
1985 2003-11-02  Roger Sayle  <roger@eyesopen.com>
1986
1987         PR optimization/10817
1988         * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
1989         (noce_try_move): New function to optimize an if-the-else into an
1990         unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
1991         (noce_process_if_block): Attempt simplification with noce_try_move.
1992
1993         * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
1994         and improvements to the optimizations of IF_THEN_ELSE expressions.
1995         (simplify_subreg): Silence signed/unsigned comparison warning.
1996
1997 2003-11-02  Richard Sandiford  <rsandifo@redhat.com>
1998
1999         * Makefile.in (targhooks.o, reload.o): Update dependencies.
2000         (GTFILES): Add targhooks.c.
2001         (gt-targhooks.h): New rule; depend on s-gtype.
2002         * target.h (direct_pool_load_p): New hook.
2003         * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
2004         (TARGET_INITIALIZER): Include it.
2005         * targhooks.h (default_direct_pool_load_p): Declare.
2006         (hook_bool_machine_mode_true): Declare.
2007         * targhooks.c: Include insn-config.h, recog.h, ggc.h and
2008         gt-targhooks.h.
2009         (pool_symbol): New variable.
2010         (default_direct_pool_load_p): New function.
2011         (hook_bool_machine_mode_true): New function.
2012         * reload.c: Include target.h.
2013         (find_reloads): If an alternative will force a constant into memory,
2014         count an extra reload if constant pool symbols are not valid
2015         addresses.  If an alternative uses memory to move values between
2016         registers, count the move as two reloads rather than one.
2017         * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
2018         * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
2019
2020 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2021
2022         PR optimization/12799
2023         * postreload.c (reload_cse_move2add): Generate the add2
2024         patterns manually.
2025
2026 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2027
2028         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2029         Return 0 for all complex modes whose size is lesser or equal to
2030         a word.  Add a ??? comment for the condition used with 16-byte
2031         aligned modes.
2032
2033 2003-11-01  Kelley Cook  <kcook@gcc.gnu.org>
2034
2035         * .cvsignore: Remove c-parse* and tradcif.c.
2036         * objc/.cvsignore: Delete.
2037
2038 2003-11-01  Roger Sayle  <roger@eyesopen.com>
2039
2040         * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
2041         of NULL.
2042
2043 2003-11-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2044
2045         * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
2046
2047         * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
2048
2049         * collect2.c (scan_libraries): Fix typos.
2050
2051         PR preprocessor/12847
2052         * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
2053         cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
2054         c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
2055         DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
2056         "CPP_".
2057
2058 2003-11-01  Fariborz Jahanian  <fjahanian@apple.com>
2059
2060         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
2061         no_units calculation.
2062
2063 2003-11-01  Andreas Jaeger  <aj@suse.de>
2064
2065         * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
2066         enumeration list.
2067
2068 2003-11-01  Andreas Schwab  <schwab@suse.de>
2069
2070         * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
2071         prototypes.
2072         (SBSS_SECTION_FUNCTION): Likewise.
2073
2074 2003-11-01  Andreas Jaeger  <aj@suse.de>
2075
2076         * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
2077
2078 2003-11-01  Andreas Tobler  <a.tobler@schweiz.ch>
2079
2080         * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
2081         prototypes.
2082
2083 2003-11-01  Andreas Jaeger  <aj@suse.de>
2084
2085         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
2086         (uw_frame_state_for): Constify variables.
2087         (extract_cie_info): Constify first argument.
2088
2089         * unwind-dw2-fde-darwin.c: Adjust prototype of
2090         _Unwind_Find_registered_FDE for recent changes.
2091         (examine_objects): Constify return value and local variable result.
2092         (_Unwind_Find_FDE): Constify return value and local variable ret.
2093
2094 2003-10-31  Per Bothner  <pbothner@apple.com>
2095
2096         * c-opts.c (finish_options):  Change to returns boolean - false iff
2097         the call to cpp_find_main_file fails.
2098         (c_common_init):  Skip preprocess_file if finish_options failed.
2099         (c_common_parse_file):  Break if finish_options failed.
2100         Fixes PR preprocessor/12545.
2101
2102 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2103
2104         * aclocal.m4: Blacklist ultrix* for mmap file.
2105         * configure: Rebuilt.
2106
2107         * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
2108         reg_parm_stack_space.
2109         * toplev.c (default_get_pch_validity): Fix warning.
2110
2111         * vax.c: Include toplev.h.
2112         (vax_init_libfuncs): Fix typo (umod).
2113         * vax.h (ASM_COMMENT_START): Define.
2114         (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
2115
2116 2003-10-31  Roger Sayle  <roger@eyesopen.com>
2117
2118         PR middle-end/11968
2119         * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
2120         confusing comment; distributivity isn't handled in expand_expr.
2121         * fold-const.c (extract_muldiv_1 <PLUS_EXPR>):  Allow overflow
2122         in distributivity, if wrap-around semantics are specified with
2123         -fwrapv.
2124
2125 2003-11-01  Alan Modra  <amodra@bigpond.net.au>
2126
2127         PR 12315
2128         * final.c (profile_function): Allow for NULL svrtx.
2129
2130 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2131
2132         * pa.c (pa_select_section): Use new style declaration.
2133         * som.h (readonly_data): Likewise.
2134
2135 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
2136
2137         * config/rs6000/rs6000.c: Update to C90 prototypes.
2138
2139 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2140
2141         PR target/7513
2142         * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
2143         code.
2144
2145 2003-10-31  Andreas Jaeger  <aj@suse.de>,
2146             Zack Weinberg  <zack@codesourcery.com>
2147
2148
2149         * crtstuff.c (__register_frame_info, __register_frame_info_bases)
2150         (__deregister_frame_info, __deregister_frame_info_bases):
2151         Constify void * argument.
2152         * unwind-dw2-fde.h (struct fde_vector):
2153         Constify 'orig_data' and 'array' fields.
2154         (__register_frame_info, __register_frame_info_bases)
2155         (__deregister_frame_info, __deregister_frame_info_bases):
2156         Constify void * argument.
2157         (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
2158         return values, and casts of type fde *, struct dwarf_fde *,
2159         and struct dwarf_cie *.
2160         * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
2161         (__deregister_frame_info, __deregister_frame_info_bases):
2162         Constify void * argument.
2163         (get_cie_encoding, ): Constify struct dwarf_cie * argument.
2164         (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
2165         (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
2166         fde_split, SWAP, frame_downheap, frame_heapsort)
2167         (classify_object_over_fdes, add_fdes, linear_search_fdes,
2168         binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
2169         binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
2170         Constify arguments, local variables, return values, and casts
2171         of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
2172         Use const pointer types in sizeof expressions, for clarity.
2173         * unwind-dw2-fde-glibc.c
2174         (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
2175         (struct unw_eh_callback_data): Constify 'ret' field.
2176
2177 2003-10-31  Fariborz Jahanian  <fjahanian@apple.com>
2178             David Edelsohn  <edelsohn@gnu.org>
2179
2180         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
2181         (function_arg): Call it.
2182         (rs6000_function_value): Widen integral return value to mode based
2183         on TARGET_32BIT, not word_mode.
2184         * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
2185         (UNITS_PER_ARG): New.
2186         (RS6000_ARG_SIZE): Use it.
2187
2188 2003-10-31  Gerald Pfeifer  <gerald@pfeifer.com>
2189
2190         * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
2191         and gengtype-yacc.h.
2192
2193 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2194
2195         PR optimization/8896
2196         * postreload.c (reload_combine): Check that REGY doesn't die in an
2197         insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
2198
2199 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
2200
2201         PR/10239
2202         * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
2203
2204 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
2205
2206         PR/11640
2207         * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
2208         immediatelly before BARRIER.
2209
2210 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
2211
2212         * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
2213
2214 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2215
2216         PR target/11271
2217         * reload.c (find_reloads_address): Handle any register in
2218         (PLUS (PLUS (REG) (REG)) (CONST_INT).
2219
2220 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2221
2222         * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
2223         ENABLE_GC_CHECKING not in GGC_POISON.
2224
2225 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
2226
2227         PR bootstrap/9863
2228         * configure.in: Bail out if awk is missing.
2229         * configure: Regenerate.
2230
2231         PR ada/12761
2232         * Makefile.in: Move default definitions of X_ADA_CFLAGS,
2233         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
2234
2235 2003-10-30  Richard Henderson  <rth@redhat.com>
2236
2237         * c-objc-common.c (c_tree_printer): Handle types correctly.
2238         Factor code a bit.
2239
2240 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
2241
2242         * value-prof.c, web.c: Update to C90.
2243
2244 2003-10-30  Eric Christopher  <echristo@redhat.com>
2245
2246         * function.c (purge_addressof_1): Add case for REG_RETVAL
2247         notes when modes are unequal.
2248
2249 2003-10-31  Jan Hubicka  <jh@suse.cz>
2250
2251         * i386-modes.def: Add XFmode format adjustment.
2252
2253 2003-10-30  Jan Hubicka  <jh@suse.cz>
2254
2255         * real.c (encode_ieee_extended): Back out previous patch.
2256
2257 2003-10-30  Jan Hubicka  <jh@suse.cz>
2258
2259         * real.c (encode_ieee_extended): Initialize whole array.
2260         * reg-stack.c (move_for_stack_reg0: Use always XFmode.
2261         * i386-modes.def: Change definitions of TFmode and XFmode.
2262         * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
2263         code.
2264         (construct_container): Allow constructing of TFmode integer containers.
2265         (ix86_return_in_memory):  XFmode is not returned in memory.
2266         (init_ext_80387_constants): Always use XFmode.
2267         (print_operand): Likewise.
2268         (ix86_prepare_fp_compare_regs): Likewise.
2269         (split_to_parts): Deal with TFmode.
2270         (split_long_move): Simplify.
2271         (ix86_init_mmx_sse_builtins): Add __float80, __float128.
2272         (ix86_memory_move_cost): Do not confuse TFmode.
2273         * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
2274         (IS_STACK_MODE): TFmode is not stack mode.
2275         (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
2276         (VALID_SSE_REG_MODE): Allow TFmode.
2277         (VALID_FP_MODE_P): Disallow TFmode.
2278         (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
2279         * i386.md (TFmode patterns): Kill.
2280         (movtf, motf_rex64): New patterns.
2281
2282 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2283
2284         * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
2285
2286 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2287
2288         * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
2289         (mov_lwr, mov_swl, mov_swr): Likewise.
2290         (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
2291
2292 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2293
2294         * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
2295
2296 2003-10-30  Richard Henderson  <rth@redhat.com>
2297
2298         * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
2299         test for irix6 rather than preprocessor test.
2300
2301 2003-10-30  Richard Henderson  <rth@redhat.com>
2302
2303         * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
2304
2305 2003-10-30  Ulrich Weigand  <uweigand@de.ibm.com>
2306
2307         * config/s390/s390.c (struct machine_function): Use save_return_addr_p
2308         as a general flag that the return address register needs to be saved,
2309         not necessarily because of __builtin_return_addr (0).
2310         (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
2311         remove special handling of zSeries machines.
2312         (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
2313         register as a regular register on zSeries machines.
2314         (s390_reorg): Adjust calls to s390_split_branches and
2315         s390_optimize_prolog.
2316         (s390_frame_info): On zSeries machines, do not assume the return
2317         register is always used.  Update regs_ever_live with current data
2318         for the special registers.
2319         (s390_emit_epilogue): Use save_return_addr_p to determine whether
2320         the return register was saved.
2321         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
2322         RETURN_REGNUM fixed on zSeries machines.
2323         (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
2324         * config/s390/s390.md ("*doloop_si"): Handle branch overflow
2325         via ahi-jgne pair on zSeries machines.
2326         ("*doloop_di"): Likewise.
2327         ("*doloop_di_long"): Remove.
2328
2329 2003-10-30  Richard Earnshaw  <rearnsha@arm.com>
2330
2331         * arm.c (arm_override_options): Revert change of arm_constant_limit
2332         when optimizing for size.
2333
2334 2003-10-29  Richard Henderson  <rth@redhat.com>
2335
2336         * fold-const.c (fold_single_bit_test): Convert the input to the
2337         operational intermediate type.
2338
2339 2003-10-29  Richard Henderson  <rth@redhat.com>
2340
2341         * builtins.c (std_build_builtin_va_list): New.
2342         * expr.h (std_build_builtin_va_list): Declare.
2343         * defaults.h (BUILD_VA_LIST_TYPE): New.
2344         * system.h (BUILD_VA_LIST_TYPE): Poison.
2345         * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
2346         * target.h (struct gcc_target): Add build_builtin_va_list.
2347         * tree.c (build_common_tree_nodes_2): Use it.
2348
2349         * config/alpha/alpha-protos.h, config/alpha/alpha.c,
2350         config/alpha/alpha.h, config/alpha/unicosmk.h,
2351         config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
2352         config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
2353         config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
2354         config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
2355         config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
2356         config/mips/mips.h, config/rs6000/rs6000-protos.h,
2357         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2358         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
2359         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2360         config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
2361         config/xtensa/xtensa.h: Rename foo_build_va_list to
2362         foo_build_builtin_va_list; make it static.  Define
2363         TARGET_BUILD_BUILTIN_VA_LIST.  Remove BUILD_VA_LIST_TYPE.
2364         Update protos.
2365
2366         * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
2367         * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
2368
2369 2003-10-29  James E Wilson  <wilson@specifixinc.com>
2370
2371         * recog.c (asm_operand_ok): Add missing break after case 'X'.
2372         Change if statements to else if statements in default case.
2373         (extract_constrain_insn_cached): Fix misspelling of constrain_operands
2374         in comment.
2375         (constrain_operands_cached): Likewise.
2376         (constrain_operands): Change if statements to else if statements in
2377         default case.
2378         * reload.c (find_reloads): Likewise.
2379
2380 2003-10-29  Richard Henderson  <rth@redhat.com>
2381
2382         * config/m68k/m68k.c (notice_update_cc): Clear cc status for
2383         shifts and rotates.
2384
2385 2003-10-30  Alan Modra  <amodra@bigpond.net.au>
2386
2387         * config/rs6000/rs6000.md: Remove duplicate pattern.
2388
2389 2003-10-29  Hans-Peter Nilsson  <hp@axis.com>
2390
2391         * real.c (do_divide): Initialize result with a 0.
2392
2393         * configure.in <enable-checking for valgrind>: Look for
2394         <valgrind/memcheck.h> first.  AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
2395         if it exists.
2396         * configure, config.in: Regenerate.
2397         * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
2398         HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>.  Use
2399         #elif for other alternatives.
2400         * ggc-page.c: Ditto.
2401         * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
2402         include structure from ggc-common.c.
2403
2404 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2405
2406         * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
2407         (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
2408         * pa.c (pa_adjust_insn_length): Check for btable branches using
2409         attribute TYPE_BTABLE_BRANCH.
2410         (pa_reorg): Simplify.
2411         * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
2412         (ASM_OUTPUT_ADDR_VEC_ELT): As above.
2413         (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
2414         * pa.md (btable_branch): New instruction type.
2415         (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
2416         btable branches.
2417         (define_delay): Add btable branches to insn types that may have an
2418         insn in the delay position.
2419         (Z2, Z3): Add btable branch to list.
2420         Simplify unamed pattern set copy pic_label_operand to register.  Add
2421         PA 2.0 variant.
2422         (short_jump): New jump for use in branch tables.
2423         (casesi, casesi0): Revise for new branch table formats.
2424         (casesi32, casesi32p, casesi64p): New casesi patterns.
2425         (indirect_jump): Move.
2426
2427 2003-10-29  David Edelsohn  <edelsohn@gnu.org>
2428
2429         * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
2430         !TARGET_POWERPC64.
2431         (UNITS_PER_GPR_WORD): Delete.
2432         (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
2433         (HARD_REGNO_MODE_OK): Same.
2434         (CLASS_MAX_NREGS): Same.
2435
2436 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2437
2438         * pa.h (ASM_COMMENT_START): Define.
2439
2440 2003-10-29  Zack Weinberg  <zack@codesourcery.com>
2441
2442         * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
2443         MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
2444         component, not zero.
2445
2446 2003-10-29  Andreas Schwab  <schwab@suse.de>
2447
2448         * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
2449
2450 2003-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2451
2452         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2453         Never return 1 for complex integral modes whose size is lesser or
2454         equal to a word.
2455         (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
2456         in the comment.
2457         (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
2458         modes.
2459         (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
2460         greater than 16 bytes by reference.
2461
2462 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2463
2464         * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
2465         not TARGET_ILP32.
2466         (ia64_initialize_trampoline): Use globalize_label target call.
2467
2468 2003-10-29  Andreas Schwab  <schwab@suse.de>
2469
2470         * doc/install.texi (Building): Add a sentence about building Ada
2471         for a canadian cross.
2472
2473 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
2474
2475         * config/ia64/ia64.c (cmptf_libfunc): New static.
2476         (ia64_expand_compare): Add logic to open-code calls to
2477         _U_Qfcmp for TFmode comparisons.
2478         (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
2479         Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
2480         never be generated anymore.
2481         * config/ia64/ia64.md (cmptf): New expander.
2482
2483 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
2484
2485         * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
2486         (*sqrt_approx): New instruction pattern for approximate square roots.
2487         (*setf_exp_xf): New instruction pattern for exponentiation.
2488         (*maddxf4_alts_truncsf): New instruction pattern for truncation.
2489         (sqrtsf2_internal_thr): New define_and_split implementing
2490         throughput-optimized inline calculation of SFmode square root.
2491         (sqrtdf2_internal_thr): Likewise for DFmode.
2492         (sqrtxf2_internal_thr): Likewise for XFmode.
2493         (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
2494         latency- and throughput-optimized square root algorithms.
2495         * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
2496         TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
2497         New macros.
2498         (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
2499         -minline-sqrt-max-throughput.
2500         * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
2501         and -minline-sqrt-max-throughput are given, notify the user
2502         that both options cannot be used simultaneously.
2503         If -minline-sqrt-min-latency is given, notify the user that
2504         this mode is not yet implemented.
2505         (rtx_needs_barrier): Reformat initial comment to obey
2506         72-character width limit.  Support UNSPEC_SETF_EXP and
2507         UNSPEC_FR_SQRT_RECIP_APPROX.
2508
2509 2003-10-29  Alan Modra  <amodra@bigpond.net.au>
2510
2511         * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
2512         moves.
2513
2514 2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2515
2516         PR target/11598
2517         PR libgcj/10610
2518         * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
2519
2520 2003-10-28  Richard Earnshaw  <rearnsha@arm.com>
2521
2522         * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
2523         an extra stack adjustment insn if the stack pointer is already
2524         pointing at the right place.
2525         (use_return_insn): Allow a return insn to be used when we have a
2526         frame pointer if the stack pointer is in the right place.
2527         (output_return_instruction): Handle it.
2528
2529 2003-10-28  Andreas Jaeger  <aj@suse.de>
2530
2531         * ggc-zone.c (check_cookies): Add missing variable.
2532         Add void to prototypes.
2533
2534 2003-10-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2535
2536         * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
2537         * crtstuff.c (__do_global_ctors_1): Move prototype.
2538         * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
2539         appropriate.
2540         * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
2541         Mark parameter with __attribute__((unused)).
2542
2543 2003-10-27  Zack Weinberg  <zack@codesourcery.com>
2544
2545         * c-decl.c (pushdecl): Clarify comment.
2546
2547 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
2548
2549         * doc/install.texi: Update instructions for Ada cross builds
2550
2551         PR ada/5909:
2552         * doc/sourcebuild.texi: Document Ada test suite.
2553
2554 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
2555
2556         * config/m68hc11/m68hc11.c: Convert to ISO C90.
2557         * config/m68hc11/m68hc11-protos.h: Likewise.
2558
2559 2003-10-27  Jan Hubicka  <jh@suse.cz>
2560             Eric Botcazou  <ebotcazou@libertysurf.fr>
2561
2562         * toplev.c (enum dump_file_index, dump_file): Fix ordering of
2563         webizer pass dump.
2564
2565 2003-10-27  Jakub Jelinek  <jakub@redhat.com>
2566             Jan Hubicka  <jh@suse.cz>
2567
2568         * reload1.c (struct elim_table): Change offset, initial_offset and
2569         previous_offset fields to HOST_WIDE_INT.
2570         (offsets_at): Change from int to HOST_WIDE_INT.
2571         (reload): Adjust offsets_at initialization.
2572         (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
2573         (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
2574         * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
2575         to HOST_WIDE_INT.  Don't save regs using mov for huge frame sizes
2576         if TARGET_64BIT.
2577         (pro_epilogue_adjust_stack): New function.
2578         (ix86_expand_prologue, ix86_expand_epilogue): Use it.
2579         * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
2580         (pro_epilogue_adjust_stack_1): Remove * in front of name.
2581         (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
2582         (pro_epilogue_adjust_stack_rex64_2): New insn.
2583
2584         * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
2585
2586         * config/i386/i386.c (ix86_expand_call): Replace 40 with
2587         FIRST_REX_INT_REG + 3 /* R11 */.
2588
2589 2003-10-26  Richard Henderson  <rth@redhat.com>
2590
2591         * config/alpha/alpha.md (attr cannot_copy): New.
2592         (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
2593         prologue_ldgp_er_2, prologue_ldgp_1): Set it.
2594         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
2595
2596 2003-10-26  Daniel Berlin  <dberlin@dberlin.org>
2597
2598         * ggc-zone.c:  New file, zone allocating collector.
2599         * configure: Accept zone option for --with-gc
2600         * configure.in: Ditto.
2601         * ggc.h (ggc_pch_count_object): Pass bool indicating
2602         stringiness. Update all callers.
2603         (ggc_pch_alloc_object): Ditto.
2604         (ggc_pch_write_object): Ditto.
2605         (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
2606         type.
2607         (ggc_alloc_rtvec): Ditto.
2608         (ggc_alloc_tree): Use zone allocation, since some things using this macro
2609         aren't a single typecode.
2610         * ggc-none.c (ggc_alloc_typed): New function.
2611         (ggc_alloc_zone): Ditto.
2612         * ggc-page.c: Ditto on both functions.
2613
2614 2003-10-26  Gunther Nikl  <gni@gecko.de>
2615
2616         * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
2617         frame information is always valid.
2618         (m68k_output_function_prologue): Remove superfluous TARGET_68881
2619         test; fix formatting.
2620
2621 2003-10-26  Gunther Nikl  <gni@gecko.de>
2622
2623         * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
2624         reg_rev_mask computation.
2625         (m68k_output_function_prologue): Fix usage of current_frame (one typo
2626         and one missing); use reg_rev_mask not reg_mask.
2627         (m68k_output_function_epilogue): Fix usage of current_frame;
2628         use fpu_rev_mask not fpu_mask.
2629
2630 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
2631
2632         * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
2633         num_saved_regs, use current_frame.reg_no instead.
2634
2635 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
2636             Paul Dale  <pauli@snapgear.com>
2637
2638         * doc/extend.texi (interrupt_handler): Add m68k to the
2639         list of processors implementing it.
2640         * doc/invoke.texi (-msep-data): Document new m68k option.
2641         (-mno-sep-data): Likewise.
2642         (-mid-shared-library): Likewise.
2643         (-mno-id-shared-library): Likewise.
2644         (-mshared-library-id): Likewise.
2645
2646 2003-10-26  Andreas Jaeger  <aj@suse.de>
2647
2648         * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
2649         comparison.
2650         (_Unwind_SetGR): Likewise.
2651
2652 2003-10-26  Ottavio Campana <ottavio@campana.vi.it>
2653
2654         PR target/12690
2655         * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
2656
2657 2003-10-26  Gunther Nikl  <gni@gecko.de>
2658
2659         * config/m68k/m68k.c (m68k_output_function_prologue): Move front
2660         comment from here to...
2661         (m68k_save_reg): ...here. Fix comment formatting.
2662         (m68k_output_function_prologue): Fix comment formatting.
2663         (m68k_output_function_epilogue): Likewise.
2664         (const_method): Likewise.
2665
2666 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
2667
2668         * toplev.c (default_get_pch_validity): Guard the use of
2669         target_options with #ifdef TARGET_OPTIONS.
2670         (default_pch_valid_p): Likewise.
2671
2672 2003-10-26  Andreas Jaeger  <aj@suse.de>
2673             Zack Weinberg  <zack@codesourcery.com>
2674             Andreas Tobler <toa@pop.agri.ch>
2675
2676         * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
2677         (output_die): Likewise.
2678         (print_die): Likewise.
2679
2680 2003-10-26  Andreas Jaeger  <aj@suse.de>
2681
2682         * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
2683         dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
2684         dwarf2out.c change.
2685
2686         * toplev.c (default_pch_valid_p): Fix warning.
2687
2688 2003-10-25  Roger Sayle  <roger@eyesopen.com>
2689
2690         * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
2691         RTL nodes.  If an operator's operands are unchanged, return the
2692         original argument unchanged.
2693
2694 2003-10-26  Graham Stott  <graham.stott@btinternet.com>
2695
2696         Fix bootstrap failure.
2697         * expmed.c (store_bit_field): Don't compare bitsize against
2698         modes with zero bit-size.
2699
2700         (extract_bit_field): Likewise
2701
2702 2003-10-25  Jan Hubicka  <jh@suse.cz>
2703
2704         * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
2705         (cfa_loc): Likewise.
2706         (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
2707         HOST_WIDE_INT.
2708         (args_size, old_args_size): change type to HOST_WIDE_INT.
2709         (dwarf2out_def_cfa, dwarf2out_args_size,
2710         dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
2711         (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
2712         (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
2713         AT_offset): Use HOST_WIDE_INT.
2714         (based_loc_descr): offset is HOST_WIDE_INT.
2715         (add_data_member): Likewise.
2716         (add_const_value_attribute): Simplify.
2717
2718 2003-10-25  Richard Henderson  <rth@redhat.com>
2719
2720         * config/i386/i386.c (ix86_eax_live_at_start_p): New.
2721         (ix86_expand_prologue): Save and restore eax around stack probe
2722         if it's live.
2723
2724 2003-10-25  Jan Hubicka  <jh@suse.cz>
2725
2726         * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
2727
2728 2003-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
2729
2730         PR target/12712
2731         * reg-stack.c (convert_regs_1): Create an arbitrary input stack
2732         if the block has no predecessors.
2733         (convert_regs_2): Document the problem with successors whose
2734         only predecessor is the block to be processed.
2735         (convert_regs): Don't create the arbitrary input stack here.
2736
2737 2003-10-24  Zack Weinberg  <zack@codesourcery.com>
2738
2739         * genmodes.c (struct mode_data): Add contained and next_cont
2740         fields.
2741         (complete_mode): Maintain linked list of modes that have a
2742         given component.
2743         (emit_mode_unit_size): Delete.
2744         (emit_mode_nunits): New.
2745         (emit_insn_modes_c): Update to match.
2746         (emit_mode_adjustments): Propagate size and alignment
2747         adjustments from component modes to their containers.
2748         * machmode.h (mode_unit_size): Delete.
2749         (mode_nunits): New.
2750         (GET_MODE_NUNITS): Just return the value in the table.
2751         (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
2752         GET_MODE_SIZE.
2753         * expmed.c (store_bit_field, extract_bit_field): Can use a
2754         plain move instruction if bitsize >= GET_MODE_BITSIZE of
2755         destination/source mode, respectively.
2756         * varasm.c (assemble_real): Write out the full size of the
2757         constant, not just its bitsize.
2758         (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
2759
2760         * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
2761         Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
2762         alignment of XF and TF modes in compliance with ia64 ABIs.
2763         Can now hardwire the format of both modes.
2764         * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
2765         (general_tfmode_operand, destination_tfmode_operand)
2766         (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
2767         general_xfmode_operand, destination_xfmode_operand,
2768         xfreg_or_fp01_operand, spill_xfmode_operand respectively.
2769         (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
2770         and float80_type be 96 so they get XFmode.  Use !TARGET_HPUX,
2771         not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
2772         __float128.
2773         * config/ia64/ia64.h: Default TARGET_HPUX to 0.
2774         Change TFmode to XFmode wherever appropriate.  Remove all
2775         references to INTEL_EXTENDED_IEEE_FORMAT.
2776         (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
2777         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
2778         (PREDICATE_CODES): Update to match function renames.
2779         * config/ia64/ia64.md: Change TF to XF throughout; rename all
2780         patterns to match.  Remove all references to
2781         INTEL_EXTENDED_IEEE_FORMAT.  Update predicate calls to match
2782         function renames.
2783         * config/ia64/ia64-protos.c: Update all prototypes to match
2784         renamed functions.
2785         * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
2786         Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
2787         * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
2788         __divtf3; keep old name for backward compatibility.
2789         (L__compat): New section providing forwarding stubs for
2790         __fixtfti, __fixunstfti, __floattitf.
2791         * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
2792
2793 2003-10-24  Geoffrey Keating  <geoffk@apple.com>
2794
2795         PR 10757
2796         * c-pch.c: Include target.h.  Improve comments.
2797         (struct c_pch_validity): Add target_data_length.
2798         (pch_init): Add target's validity data.
2799         (c_common_valid_pch): Check target's validity data.
2800         * target-def.h (TARGET_GET_PCH_VALIDITY): New.
2801         (TARGET_PCH_VALID_P): New.
2802         (TARGET_INITIALIZER): Add new fields.
2803         * target.h: Include tm.h.
2804         (struct gcc_target): Add get_pch_validity, pch_valid_p.
2805         * toplev.h (default_get_pch_validity): New prototype.
2806         (default_pch_valid_p): New prototype.
2807         * toplev.c (default_get_pch_validity): New routine.
2808         (default_pch_valid_p): New routine.
2809         * Makefile.in (TARGET_H): Add TM_H.  Replace all users of
2810         target.h with $(TARGET_H).
2811         (c-pch.o): Add TARGET_H.
2812         * doc/tm.texi (PCH Target): New node.
2813         (TARGET_GET_PCH_VALIDITY): Document.
2814         (TARGET_PCH_VALID_P): Document.
2815
2816 2003-10-24  Kelley Cook  <kcook@gcc.gnu.org>
2817
2818         * Makefile.in: Define a vpath for %.texi.  Remove explicit $(docdir)
2819         and $(docdir)/include from any *.texi dependencies.
2820         ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
2821         ($(docobjdir)/%.1): Depend on .pod instead of .texi.
2822         ($(docobjdir)/%.7): Likewise.
2823         (%.pod): New implicit rule.
2824         (cpp.pod): New dependency only rule.
2825         (gcc.pod): New intermediate rule with dependencies and commands.
2826         (gfdl.pod): Likewise.
2827         (fsf-funding.pod): Likewise.
2828
2829 2003-10-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2830
2831         * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
2832         related code.
2833         * fixinc/fixinc.ptx: Remove.
2834         * fixinc/fixinc.svr4: Remove.
2835
2836 2003-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
2837
2838         * config/s390/s390.c (load_multiple_operation): Allow both SImode
2839         and DImode if word_mode is DImode.
2840         (store_multiple_operation): Likewise.
2841         * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
2842         ("*load_multiple_di"): Allow only if word_mode == DImode.
2843         ("movqi"): Use LLGC whenever TARGET_ZARCH.
2844         ("fix_truncdfsi2"): Fix incorrect temporary size.
2845         ("fix_truncsfsi2"): Likewise.
2846         ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
2847         string for function return value operand.
2848         ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
2849
2850 2003-10-24  Joseph S. Myers  <jsm@polyomino.org.uk>
2851
2852         * c-parse.in (array_declarator): Use expr_no_commas.
2853         Fixes PR c/11943.
2854
2855 2003-10-24  Richard Sandiford  <rsandifo@redhat.com>
2856
2857         * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
2858         associated includes in #ifndef inhibit_libc.
2859
2860 2003-10-24  Roger Sayle  <roger@eyesopen.com>
2861
2862         * doc/libgcc.texi: Document some more of the libgcc API.
2863
2864 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
2865
2866         * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
2867         comparing a constant with small negative numbers and add costing
2868         for constants in conjunction with AND.
2869         (note_invalid_constants): Tidy previous change.
2870         (thumb_cmp_operand): Tidy.
2871         (thumb_cmpneg_operand): New function.
2872         * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
2873         for size.
2874         (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
2875         (PREDICATE_CODES): Add thumb_cmpneg_operand.
2876         * arm.md (cbranchsi4): Convert to define_expand.  Handle comparison
2877         with a negative constant.
2878         (cbranchsi4_insn): Matcher for cbranchsi4.
2879         (cbranchsi4_scratch): Similar, but a scratch is available for
2880         handling negative constants.
2881         (movsi_cbranchsi4): New pattern.
2882         (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
2883         and use the TST instruction.
2884         (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
2885         (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
2886         cannot see high regs or memory alternatives.
2887         (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
2888
2889 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
2890
2891         * arm.c (note_invalid_constants): Try to extract the constant
2892         pool value using avoid_constant_pool_reference; only use
2893         get_pool_constant if that returns the original reference.
2894
2895 2003-10-24  Jan Hubicka  <jh@suse.cz>
2896
2897         PR c++/12624
2898         * varasm.c (notice_global_symbol): Disqualify global registers.
2899
2900 2003-10-23  Roger Sayle  <roger@eyesopen.com>
2901
2902         PR middle-end/11414
2903         * loop.c (load_mems): Use redirect_jump to forward jumps from
2904         the original loop end label to the new "loop sink" block's label.
2905
2906 2003-10-23  Roger Sayle  <roger@eyesopen.com>
2907
2908         PR middle-end/12705
2909         * optabs.c (expand_binop): When expanding complex operations
2910         inline, always calculate result into a new temporary register.
2911         Minor code clean-ups.
2912
2913 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2914
2915         * objc/lang-specs.h: Handle -print-objc-runtime-info.
2916         * doc/invoke.texi (Objective-C Dialect Options): Document it.
2917
2918 2003-10-24  Danny Smith  <dannysmith@users.sourceforge.net>
2919
2920         * config/i386/cygwin.asm: Add copyright notice. Add comment
2921         on why this code is needed.
2922
2923 2003-10-23  Kazu Hirata  <kazu@cs.umass.edu>
2924
2925         * config/h8300/clzhi2.c: Fix warnings.
2926         * config/h8300/ctzhi2.c: Likewise.
2927         * config/h8300/fixunssfsi.c: Likewise.
2928         * config/h8300/parityhi2.c: Likewise.
2929         * config/h8300/popcounthi2.c: Likewise.
2930
2931 2003-10-23  James E Wilson  <wilson@specifixinc.com>
2932
2933         * gcc.c (option_map): Delete --target and --use-version.
2934
2935 2003-10-23  Fariborz Jahanian  <fjahanian@apple.com>
2936             David Edelsohn  <edelsohn@gnu.org>
2937
2938         * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
2939         TARGET_POWREPC64.
2940         (UNITS_PER_GPR_WORD): Define.
2941         (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
2942         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
2943         (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
2944         (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
2945         * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
2946         DFmode and DImode in 32-bit ABI / 64-bit computation mode.
2947         (rs6000_emit_prologue): Select reg_mode and reg_size using
2948         TARGET_32BIT, not TARGET_POWERPC64.
2949         (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
2950         ABI / 64-bit computation mode
2951
2952 2003-10-22  Andrew Haley  <aph@redhat.com>
2953
2954         * toplev.c (output_file_directive): Allow for null input_name.
2955
2956 2003-10-22  Waldek Hebisch <hebisch@math.uni.wroc.pl>
2957
2958         * config/i386/i386.c (classify_argument): Handle SET_TYPE.
2959
2960 2003-10-22  Chris Demetriou  <cgd@broadcom.com>
2961
2962         * configure.in: In --enable-generated-files-in-srcdir option
2963         handling, fix default case handling.
2964         * configure: Regenerate.
2965
2966 2003-10-22  Phil Edwards  <phil@codesourcery.com>
2967
2968         * config.gcc:  Update *-*-vxworks* generic hook and comments.
2969         (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
2970         mips-wrs-windiss, sh-wrs-vxworks):  New stanzas.
2971         * genmultilib:  Allow the MULTILIB_OSDIRNAMES to be mapped directly.
2972         * config/svr4.h (SWITCH_TAKES_ARG):  Undefine it before redefining it.
2973         * config/windiss.h:  New file.
2974         * config/arm/t-vxworks:  New file.
2975         * config/arm/vxworks.h:  New file.
2976         * config/i386/t-vxworks:  New file.
2977         * config/i386/vxworks.h:  New file.
2978         * config/mips/t-vxworks:  New file.
2979         * config/mips/vxworks.h:  New file.
2980         * config/mips/windiss.h:  New file.
2981         * config/sh/t-vxworks:  New file.
2982         * config/sh/vxworks.h:  New file.
2983
2984 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
2985
2986         * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
2987         (h8300_saveall_function_p): New.
2988         (h8300_insert_attributes): Insert the saveall attribute if
2989         #pragma saveall is specified.
2990         (h8300_attribute_table): Add saveall.
2991         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
2992         * doc/extend.texi: Mention the saveall attribute.
2993
2994 2003-10-22  Joseph S. Myers  <jsm@polyomino.org.uk>
2995
2996         * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
2997         deprecation of casts as lvalues.
2998         * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
2999         * fixinc/fixincl.x: Regenerate.
3000         * fixinc/tests/base/obstack.h: New test.
3001
3002 2003-10-22  Andreas Schwab  <schwab@suse.de>
3003
3004         PR target/12676
3005         * config/m68k/m68k.c (output_addsi3): Fix range check to work on
3006         LP64 platforms.
3007
3008 2003-10-22  Jan Hubicka  <jh@suse.cz>
3009
3010         * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
3011         presence of DW_AT_inline.
3012         (gen_subprogram_die): Likewise; do not abort instead of emitting
3013         DW_AT_not_inline.
3014
3015 2003-10-22  Jan Hubicka  <jh@suse.cz>
3016
3017         * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
3018         global info is not ready.
3019
3020 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3021
3022         * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
3023
3024 2003-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
3025
3026         * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
3027         ("*movstr_short"): ... into this insn pattern.
3028         ("movstr_short"): New expander.
3029         ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
3030         ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
3031         ("movstr_long"): New expander.
3032         ("clrstr_short_64", "clrstr_short_31"): Merge ...
3033         ("*clrstr_short"): ... into this insn pattern.
3034         ("clrstr_short"): New expander.
3035         ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
3036         ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
3037         ("clrstr_long"): New expander.
3038         ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
3039         ("*cmpmem_short"): ... into this insn pattern.
3040         ("cmpmem_short"): New expander.
3041         ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
3042         ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
3043         ("cmpmem_long"): New expander.
3044         * config/s390/s390.c (s390_expand_movstr): Use new expanders.
3045         (s390_expand_clrstr): Likewise.
3046         (s390_expand_cmpmem): Likewise.
3047
3048 2003-10-22  Mark Mitchell  <mark@codesourcery.com>
3049
3050         * c-pch.c (struct c_pch_validity): Add pch_init field.
3051         (pch_init): Set it.
3052         (c_common_valid_pch): Check it.
3053
3054 2003-10-22  David Taylor <dtaylor@emc.com>
3055
3056         PR debug/12500
3057         * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
3058
3059 2003-10-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3060
3061         * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
3062         alpha_return_in_memory if no VALTYPE specified.
3063
3064 2003-10-22  Jan Hubicka  <jh@suse.cz>
3065
3066         PR debug/12389
3067         * Makefile.in (dwarf2out.o): Depend on cgraph.h.
3068         * cgraph.c (cgraph_function_possibly_inlined_p): New function.
3069         * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
3070         (cgraph_global_info): Add flag inlined
3071         * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
3072         cgraph_function_possibly_inded_p
3073         * cgraphunit.c (mark_inline): Set inlined flag.
3074         * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
3075         only for possibly inlined functions.
3076         * c-decl.c (duplicate_decls): Never output abstract DIE representing old
3077         body of function.
3078
3079 2003-10-22  Andrew Haley  <aph@redhat.com>
3080
3081         * varasm.c (output_constructor): Make constructor annotation
3082         conditional on ASM_COMMENT_START.
3083
3084 2003-10-21  Jason Merrill  <jason@redhat.com>
3085
3086         * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
3087         (get_narrower): Likewise.
3088
3089         * stor-layout.c (layout_decl): Do packed field alignment for
3090         bit-fields, too.
3091
3092 2003-10-21  Eric Christopher  <echristo@redhat.com>
3093
3094         * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
3095
3096 2003-10-21  Geoffrey Keating  <geoffk@apple.com>
3097
3098         * c-pch.c: Add comments in various places.
3099         (struct c_pch_validity): Add the lengths of various strings.
3100         (host_machine): New static.
3101         (target_machine): New static.
3102         (get_ident): Bump version number.
3103         (pch_init): Write out version, host, target validity data.
3104         (c_common_valid_pch): Check version, host, target.
3105         * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
3106         TARGET_MACHINE.
3107
3108 2003-10-21  Jason Merrill  <jason@redhat.com>
3109
3110         * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
3111         (EXPR_P): New macro.
3112
3113 2003-10-21  Zack Weinberg  <zack@codesourcery.com>
3114
3115         * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
3116         * config/ia64/ia64.c (ia64_expand_fetch_and_op,
3117         ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
3118         DImode.   Use convert_move to load ar.ccv.
3119         (ia64_expand_compare_and_swap): Likewise.
3120         If expand_expr doesn't put 'old' and 'new' in the proper
3121         modes, run them through convert_to_mode.
3122
3123 2003-10-21  Eric Christopher  <echristo@redhat.com>
3124
3125         * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
3126         for too large bitfields.
3127
3128 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
3129
3130         * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
3131
3132 2003-10-21  Andrew Haley  <aph@redhat.com>
3133
3134         * varasm.c (output_constructor): Annotate constructor.
3135
3136 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
3137
3138         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
3139         on existence of destination file.
3140
3141 2003-10-21  Jan Hubicka  <jh@suse.cz>
3142
3143         * haifa-sched.c (choose_ready): Initialize index.
3144
3145 2003-10-21  Jason Merrill  <jason@redhat.com>
3146
3147         * tree.c (build1): Fix off-by-one error.
3148
3149 2003-10-21  Robert Millan  <robertmh@gnu.org>
3150
3151         * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
3152         * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
3153         * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
3154         * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
3155
3156 2003-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3157
3158         * web.c: Fix various comments.
3159
3160 2003-10-20  Nicolas Pitre <nico@cam.org>
3161
3162         * config/arm/arm.c (arm_override_options): Set arm_constant_limit
3163         to 2 instead of 1 when optimize_size is true.  Gather code based on
3164         optimize_size together.  Add comment about XScale load latency.
3165
3166 2003-10-21  Gunther Nikl  <gni@gecko.de>
3167
3168         * config/m68k/m68k.c (m68k_output_function_prologue): Remove
3169         obsolete comments.
3170
3171 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
3172
3173         * Makefile.in: Get parsedir and docobjdir from configure.
3174         * configure.in: Recogonize --enable-generated-files-in-srcdir.
3175         Pass along parsedir and docobjdir.
3176         * configure: Regenerate.
3177         * doc/install.texi: Document --enable-generated-files-in-srcdir.
3178
3179 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
3180
3181         * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
3182         included.
3183
3184 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
3185
3186         * c-common.c (expand_tree_builtin): Ensure creal and cimag
3187         functions do not return lvalues.
3188
3189 2003-10-20  Jason Merrill  <jason@redhat.com>
3190
3191         PR c/12553
3192         * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
3193         appropriately.
3194
3195         PR c/11446
3196         * stor-layout.c (layout_decl): Fix alignment handling.
3197
3198 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
3199
3200         * doc/extend.texi: Deprecate casts as lvalues.
3201
3202 2003-10-20  Jan Hubicka  <jh@suse.cz>
3203
3204         * toplev.c (rest_of_compilation): Fix webizer pass ordering.
3205
3206         * cgraphunit.c (decide_is_function_needed):  Fix test dealing
3207         with functions implicitly made inline.
3208
3209         * cgraphunit.c (cgraph_decide_inlining_incrementally):  New function.
3210         (cgraph_finalize_function): Use it.
3211         (cgraph_mark_inline): Allow incrmental decisions
3212         * invoke.texi (max-inline-slope, min-inline-insns): Kill.
3213         * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
3214         * tree-inline.c (limits_allow_inlining): Kill.
3215         (expand_call_inline): Always use unit-at-a-time path.
3216
3217 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3218
3219         * fixinc/inclhack.def (hpux11_snprintf): New edit.
3220         * fixinc/fixincl.x: Regenerate.
3221         * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
3222
3223 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
3224
3225         * Makefile.in (install-info): Simplify.
3226         ($(DESTDIR)$(infodir)/%.info): New rule.
3227         * configure.in (target_list): Remove install-info.
3228         * doc/.cvsignore (gcc.info*): Remove.
3229         (gccint.info*): Likewise.
3230         (gccinstall.info*): Likewise.
3231         (cpp.info*): Likewise.
3232         (cppinternals.info*): Likewise.
3233         (*.info*): Add it.
3234         * doc/sourcebuild.texi: Update description of install-info.
3235         * objc/Make-lang.in (objc.install-info): Remove.
3236
3237 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3238
3239         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
3240         Use it in _MIPS_SIM definition.
3241         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3242
3243 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3244
3245         * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
3246         virtual register, but only if file == asm_out_file.
3247         * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
3248         for ARG_POINTER_REGNUM.
3249
3250 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3251
3252         * c-common.c (registered_builtin_types): New static.
3253         (c_common_type_for_mode): Consult registered_builtin_types.
3254         (c_register_builtin_type): Add type to registered_builtin_types.
3255         * optabs.c (init_floating_libfuncs): Initialize libfuncs for
3256         all MODE_FLOAT modes, not just the ones corresponding to
3257         float_type_node, double_type_node, and long_double_type_node.
3258
3259 2003-10-20  Richard Henderson  <rth@redhat.com>
3260
3261         * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
3262         * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
3263
3264 2003-10-20  Dorit Naishlos  <dorit@il.ibm.com>
3265
3266         * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
3267         support new flag -minsert-sched-nops.
3268         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
3269         * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
3270         support new flag -minsert-sched-nops.
3271         (is_cracked_insn, is_microcoded_insn): New functions.
3272         (rs6000_sched_finish): New function.
3273         (rs6000_issue_rate): Return 5 for power4.
3274         (get_next_active_insn, insn_terminates_group_p): New
3275         functions.
3276         (is_costly_group, force_new_group): New functions.
3277         (redefine_groups, pad_groups): New functions.
3278         (rs6000_variable_issue): Use new functions.
3279         * doc/invoke.texi (-minsert-sched-nops): Document new
3280         option.
3281
3282 2003-10-20  David S. Miller  <davem@redhat.com>
3283
3284         * config/sparc/sparc.md (type attribute): Add new insn types
3285         fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
3286         (patterns emitting VIS insns): Use them.
3287         * config/sparc/ultra1_2.md: Add VIS scheduling rules.
3288         * config/sparc/ultra3.md: Likewise.
3289
3290 2003-10-20  Falk Hueffner  <falk@debian.org>
3291
3292         PR target/12654
3293         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
3294         comparison against constant by adjusting the argument except for
3295         EQ and NE.
3296
3297 2003-10-19  Mark Mitchell  <mark@codesourcery.com>
3298
3299         * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
3300         arm1136jfs, and armv6j.
3301         * config/arm/arm.c (FL_ARCH6J): New macro.
3302         (FL_VFPV2): Likewise.
3303         (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
3304         and arm1136jfs.
3305         (all_architectures): Add entry for armv6j.
3306         (arm_override_options): Add entries for arm926ejs, arm1026ejs,
3307         arm1136js, and arm1136jfs.
3308         * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
3309         (TARGET_CPU_arm1026ej_s): Likewise.
3310         (TARGET_CPU_arm1136j_s): Likewise.
3311         (TARGET_CPU_arm1136jf_s): Likewise.
3312         * doc/invoke.texi: Document new ARM cores and architecture
3313         variants.
3314
3315 2003-10-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3316
3317         * Makefile.in (toplev.o): Add value-prof.h dependency.
3318         (value-prof.o): Add REGS_H dependency.
3319         * common.opt (fprofile-values, fvpt): New.
3320         * flags.h (flag_value_profile_transformations): Declare.
3321         * opts.c (common_handle_option): Handle -fprofile_values and
3322         -fvpt.
3323         * profile.c (branch_prob): Don't remove death notes here.
3324         * timevar.def (TV_VPT): New.
3325         * value-prof.c: Include regs.h.
3326         (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
3327         gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
3328         mod_subtract_transform, value_profile_transformations): New.
3329         (insn_values_to_profile): Call insn_divmod_values_to_profile.
3330         (find_values_to_profile): Add dumps.
3331         * value-prof.h (value_profile_transformations): Declare.
3332         * toplev.c: Include value-prof.h.
3333         (rest_of_handle_value_profile_transformations): New.
3334         (enum dump_file_index): Add DFI_vpt.
3335         (dump_file): Add vpt dump.
3336         (flag_value_profile_transformations): New.
3337         (lang_independent_options): Add flag_profile_values and
3338         flag_value_profile_transformations.
3339         (rest_of_compilation): Call
3340         rest_of_handle_value_profile_transformations.
3341         (process_options): Let -fvpt imply -fprofile-values.
3342         * doc/invoke.texi (-fvpt): Document.
3343
3344 2003-10-19  Jan Hubicka  <jh@suse.cz>
3345
3346         * i386.c (print_reg): Do not abort on certain registers.
3347
3348         PR optimization/12612
3349         * reg-stack.c (subst_stack_regs_pat):  Use st(1) for clobbers.
3350         * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
3351         match_scratch; avoid bogus paralles.
3352
3353         PR target/12674
3354         * i386.c (ix86_function_regparm): Disable implicit register passing
3355         conventions when profiling.
3356
3357 2003-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3358             Richard Henderson  <rth@redhat.com>
3359
3360         PR optimization/8178
3361         * config/i386/i386.md (*movsi_zero): Delete.
3362         (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
3363
3364 2003-10-19  Richard Henderson  <rth@redhat.com>
3365
3366         * config/alpha/alpha.c (fix_operator): New.
3367         (divmod_operator): Tidy.
3368         (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
3369         * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
3370         (PREDICATE_CODES): Update.
3371         * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
3372         (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
3373         (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
3374         (fix_truncsfdi_ieee): Likewise.
3375         (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
3376         (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
3377         * config/alpha/alpha-protos.h: Update.
3378
3379 2003-10-19  Richard Sandiford  <rsandifo@redhat.com>
3380
3381         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
3382         * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
3383         * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
3384         constant operands.
3385
3386 2003-10-18  Kazu Hirata  <kazu@cs.umass.edu>
3387
3388         * doc/extend.texi: Fix typos.
3389         * doc/invoke.texi: Likewise.
3390
3391 2003-10-18  Nicolas Pitre <nico@cam.org>
3392
3393         * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
3394         XScale optimizations not arm_arch_xscale.
3395         * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
3396
3397 2003-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
3398
3399         * config/s390/s390-protos.h (shift_count_operand): Add prototype.
3400         * config/s390/s390.c (shift_count_operand): New function.
3401         (s390_extra_constraint): Use it to implement 'Y' constraint.
3402         (print_shift_count_operand): New function.
3403         (print_operand): Use it to implement '%Y'.
3404         * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
3405         (PREDICATE_CODES): Add shift_count_operand.
3406         * config/s390/s390.md ("rotldi3"): Merge alternatives,
3407         using "shift_count_operand" predicate and "Y" constraint,
3408         and "%Y" to output the combined shift count.
3409         ("rotlsi3"): Likewise.
3410         ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
3411         ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
3412         "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
3413         ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
3414         ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
3415         ("lshrsi3"): Likewise.
3416
3417 2003-10-18  Gunther Nikl  <gni@gecko.de>
3418
3419         * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
3420         argument to asm_fprintf statement.
3421
3422 2003-10-18  Fariborz Jahanian  <fjahanian@apple.com>
3423
3424         * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
3425         (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
3426         a "long long" argument.
3427
3428 2003-10-18  Alexandre Oliva  <aoliva@redhat.com>
3429
3430         * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
3431         as well.
3432
3433 2003-10-18  Richard Sandiford  <rsandifo@redhat.com>
3434
3435         * rtl.h (rtl_size): Declare.
3436         (rtunion): Remove rtwint.
3437         (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
3438         (RTX_HDR_SIZE, RTX_SIZE): New macros.
3439         (RTL_CHECK1): Adjust for new rtx_def layout.
3440         (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
3441         (XWINT, XCWINT): Likewise.  Access the rtx structure directly.
3442         (X0WINT): Remove.
3443         (X0ANY): New macro.
3444         * rtl.def: Adjust comments for new rtx_def layout.
3445         * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
3446         number of slots.
3447         * rtl.c (rtx_size): New array.
3448         (rtx_alloc): Adjust call to ggc_alloc_rtx.  Use RTX_HDR_SIZE.
3449         (copy_rtx): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
3450         (shallow_copy_rtx): Adjust call to ggc_alloc_rtx.  Use RTX_SIZE.
3451         * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
3452         * emit-rtl.c (copy_most_rtx): Likewise.
3453         (copy_rtx_if_shared): Use RTX_SIZE.
3454         (copy_insn_1): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
3455         * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call.  Use RTX_HDR_SIZE.
3456         * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
3457         (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
3458         an array.  Adjust output for new rtx_def layout.
3459         * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
3460         * reload1.c (eliminate_regs): Use RTX_SIZE.
3461         * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
3462         * gdbinit.in (pi): Likewise.
3463
3464 2003-10-18  Jan Hubicka  <jh@suse.cz>
3465
3466         * integrate.c (copy_decl_for_inlining): Revert previous patch.
3467
3468 2003-10-18  Jan Hubicka  <jh@suse.cz>
3469
3470         * integrate.c (copy_decl_for_inlining): Fix copying of copies.
3471
3472 2003-10-18  Roger Sayle  <roger@eyesopen.com>
3473
3474         * libgcc.texi: Group multi-word types, such as "long double" and
3475         "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
3476         Document __unord?f2 as returning a non-zero value, not just one.
3477
3478 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
3479
3480         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
3481         ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
3482
3483 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3484
3485         * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
3486         match_operand.
3487
3488 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3489
3490         * config/sparc/sparc.c (function_arg_record_value_1): New fourth
3491         parameter packed_p.  Search for a DECL_PACKED field only if
3492         packed_p is false.  Pass packed_p recursively.
3493         (function_arg_record_value_2): Likewise.
3494         (function_arg_record_value): Update calls to
3495         function_arg_record_value_1 and function_arg_record_value_2.
3496
3497 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3498
3499         * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
3500         was successfully forced to memory before using the result.
3501
3502 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3503
3504         PR optimization/8178
3505         * config/i386/i386.md (*movsi_zero): New insn to set
3506         a register to zero on TARGET_USE_MOV0 targets.
3507
3508 2003-10-18  Kelley Cook  <kcook@gcc.gnu.org>
3509
3510         * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
3511         (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
3512
3513 2003-10-17  David Edelsohn  <edelsohn@gnu.org>
3514
3515         * doc/invoke.texi (gcse-las): Fix typo.
3516
3517 2003-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
3518
3519         * doc/install.texi: Remove first part of the sentence for
3520         zsh not working.  Change gcc to GCC.
3521
3522         PR bootstrap/12546
3523         * doc/install.texi: Document that zsh does not work when
3524         configuring gcc.
3525
3526 2003-10-17  Nathanael Nerode  <neroden@gcc.gnu.org>
3527
3528         * config/ptx4.h: Switch to DWARF 2; update comments.
3529
3530 2003-10-17  Segher Boessenkool  <boessen@de.ibm.com>
3531             Hartmut Penner  <hpenner@de.ibm.com>
3532
3533         PR 10404, partial 11591, partial 11601
3534         * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
3535         "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
3536         "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
3537         "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
3538         "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
3539         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
3540         (altivec_expand_stv_builtin): Adjust for the memory_operand.
3541         (altivec_expand_builtin): Call altivec_expand_lv_builtin.
3542         (altivec_init_builtins): Use `long int' for memory offsets.
3543
3544 2003-10-17  Jan Hubicka  <jh@suse.cz>
3545
3546         * opts.c  (common_handle_option): Handle OPT_fweb
3547         * invoke.texi (-fweb): Add missing parts of documentation.
3548
3549 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3550
3551         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
3552         before redefinition.
3553
3554 2003-10-17  Mostafa Hagog  <mustafa@il.ibm.com>
3555
3556         * common.opt: Add description of the new -fgcse-las flag.
3557         * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
3558         * gcse.c (hash_scan_set): Handle the case of store expression and
3559         insert the memory expression to the hash table, this way we make it
3560         possible to discover redundant loads after stores and remove them.
3561         (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
3562         to pre_insert_copies, it is not the correct place to call it after
3563         adding stores to be in the available expression hash table.
3564         (pre_insert_copies): Added the call to update_ld_motion_stores when
3565         one or more copies were inserted.
3566         * opts.c (common_handle_option): Handle the -fgcse-las flag.
3567         * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
3568
3569         * doc/invoke.tex: Document new -fgcse-las flag.
3570
3571 2003-10-18  Alan Modra  <amodra@bigpond.net.au>
3572
3573         * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
3574         for posterity, then remove it.
3575
3576 2003-10-17  Richard Earnshaw <rearnsha@arm.com>
3577             Nathan Sidwell  <nathan@codesourcery.com>
3578
3579         * config/arm/arm.c (use_return_insn): Not a single instruction, if
3580         there's a frame pointer.
3581         (arm_output_epilogue): Protect stack pointer from being corrupted
3582         on interrupt.
3583
3584 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
3585
3586         * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
3587
3588 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
3589
3590         * combine.c (simplify_set): Do not clear out undobuf.other_insn
3591         already set elsewhere.
3592
3593 2003-10-17  Kelley Cook  <kcook@gcc.gnu.org>
3594
3595         * config/i386/i386.c (ix86_expand_prologue):  Use
3596         gen_allocate_stack_worker.
3597
3598 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3599
3600         * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
3601         without gas.
3602         (mips-sgi-irix6*): Likewise.
3603
3604         * config/mips/iris6gas.h: New file.
3605         * gcc/config.gcc (mips-sgi-irix6*): Use it.
3606
3607         * config/mips/mips.h (TARGET_IRIX): Provide default.
3608         (TARGET_IRIX5): Likewise.
3609         (TARGET_SGI_O32_AS): Likewise.
3610         * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
3611         (TARGET_IRIX5): Likewise.
3612         * config/mips/iris6.h (TARGET_IRIX6): Remove.
3613         (TARGET_IRIX5): Redefine as 0.
3614
3615         * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
3616         linker workaround with TARGET_IRIX and mips_abi instead of
3617         ASM_OUTPUT_UNDEF_FUNCTION.
3618         (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
3619         testing TARGET_IRIX and mips_abi explicitly.
3620         * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
3621         * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
3622
3623         * config/mips/mips.c (irix_output_external_libcall): Renamed from
3624         mips_output_external_libcall.
3625         Use new TARGET_IRIX in guard.
3626         * config/mips/mips-protos.h (irix_output_external_libcall): Match
3627         this.
3628         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
3629
3630         * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
3631         Define as 0.
3632
3633         * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
3634         depending on mips_abi.
3635         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
3636         * config/mips/mips.c (mips_output_function_prologue): Test
3637         FUNCTION_NAME_ALREADY_DECLARED at runtime.
3638         (mips_output_function_epilogue): Likewise.
3639         (build_mips16_function_stub): Likewise.
3640         (build_mips16_call_stub): Likewise.
3641         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
3642         default.
3643
3644         * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
3645         IRIX 6 O32 assembler.
3646         (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
3647         (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
3648         _MIPS_SIM for O32 ABI.
3649         (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
3650         (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
3651         (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
3652         Integrate O32 version.
3653         (SUBTARGET_ASM_SPEC): Handle -mabi=32.
3654         (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
3655         O32 ABI.
3656         (BSS_SECTION_ASM_OP_32): Define.
3657         (BSS_SECTION_ASM_OP_64): Likewise.
3658         (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
3659         using them.
3660         (TARGET_ASM_NAMED_SECTION): Reflect renaming.
3661         Move up to allow override for O32 ABI without GNU as.
3662         (EH_FRAME_SECTION_NAME): Define explicitly.
3663         (MUST_USE_SJLJ_EXCEPTIONS): Define.
3664         [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
3665         DTORS_SECTION_ASM_OP): Dummy definitions.
3666         (TARGET_ASM_NAMED_SECTION): Undef statically.
3667         (EH_FRAME_SECTION_NAME): Likewise.
3668         (ASM_OUTPUT_FILENAME): Integrate mips.h version.
3669         (LINK_SPEC): Only use default options -call_shared -no_unresolved
3670         without -r.
3671         Don't pass -init, -fini with -mabi=32.
3672         (COLLECT_PARSE_FLAG): Define.
3673
3674         * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
3675         TARGET_IRIX.
3676         Renamed to use irix_ prefix.
3677         (iris6_asm_named_section): Likewise.
3678         (iris_section_align_entry_eq): Likewise.
3679         (iris_section_align_entry_hash): Likewise.
3680         (iris6_file_start): Likewise.
3681         (iris6_section_align_1): Likewise.
3682         (iris6_file_end): Likewise.
3683         (iris6_section_type_flags): Likewise.
3684         (iris_section_align_htab): Likewise.
3685         (iris_orig_asm_out_file): Likewise.
3686         [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
3687         (TARGET_ASM_FILE_END): Likewise.
3688         (TARGET_SECTION_TYPE_FLAGS): Likewise.
3689
3690         * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
3691         (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
3692         override_options instead.
3693         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
3694         (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
3695         * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
3696         flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
3697         assemblers.
3698         Likewise for constructor/destructor handling.
3699         (override_options): Handle IRIX O32 assembler quirks.
3700         [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
3701         without gas.
3702         (mips_file_start): Use new TARGET_IRIX.
3703         (mips_declare_object_name): No special processing for IRIX O32
3704         assembler.
3705         (mips_finish_declare_object): Likewise.
3706         (irix_asm_output_align): Renamed from iris6_asm_output_align.
3707         Don't record alignment for O32 ABI.
3708         (irix_file_start): Renamed from iris6_file_start.
3709         Return early for O32 ABI.
3710         (irix_file_end): Renamed from iris6_file_end.
3711         Don't emit .section directives for O32 ABI.
3712         * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
3713         * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
3714
3715         * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
3716         (MULTILIB_OSDIRNAMES): Likewise.
3717
3718 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3719
3720         * collect2.c (COLLECT_PARSE_FLAG): Provide default.
3721         (main): Use it.
3722         * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
3723
3724 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
3725
3726         * arm-modes.def (CC_Nmode): New condition code mode.
3727         * arm.c (thumb_condition_code): Delete.
3728         (arm_select_cc_mode): Handle single-bit test for Thumb.
3729         (arm_print_operand, cases 'd' and 'D'): Don't special case the
3730         condition code logic for Thumb.
3731         (get_arm_condition_code): Handle CC_Nmode.
3732         (thumb_cbrch_target_operand): New function.
3733         * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
3734         * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
3735         * arm.md: Add Thumb split patterns for zero_extract and
3736         sign_extract.
3737         (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
3738         (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
3739         (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
3740         (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
3741         (cbranchne_decr1): Re-work to use CC_Nmode.
3742
3743         * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
3744         by the return instruction.  Add a use of the link register if it
3745         wasn't stored.
3746
3747 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
3748
3749         * flow.c (init_propagate_block_info): Don't abort if a conditional
3750         jump is not a comparison of a register.  Instead, just don't record
3751         conditional life information.
3752
3753 2003-10-16  Jan Hubicka  <jh@suse.cz>
3754
3755         PR optimization/12630
3756         * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
3757         for operands 7 and 8.
3758
3759 2003-10-16  Kelley Cook  <kcook@gcc.gnu.org>
3760
3761         * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
3762
3763 2003-10-16  Danny Smith  <dannysmith@users.sourceforge.net>
3764
3765         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
3766
3767         * config/i386/winnt.c (gen_stdcall_suffix): Make static
3768         (gen_fastcall_suffix): Likewise.
3769         (i386_pe_dllexport_p): Likewise.
3770         (i386_pe_dllimport_p): Likewise.
3771         (i386_pe_mark_dllexport): Likewise.
3772         (i386_pe_mark_dllimport): Likewise.
3773         (i386_pe_asm_named_section): Fix formatting.
3774
3775 2003-10-16  Zack Weinberg  <zack@codesourcery.com>
3776
3777         * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
3778         * system.h: Declare snprintf if necessary.
3779         * configure, config.in: Regenerate.
3780
3781 2003-10-15  David Edelsohn  <edelsohn@gnu.org>
3782
3783         * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
3784         arguments if TARGET_ALTIVEC_ABI.
3785
3786 2003-10-15  Roger Sayle  <roger@eyesopen.com>
3787
3788         * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
3789         fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
3790         fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
3791         New functions.
3792         (expand_builtin_memcpy): Use integer_zerop instead of testing
3793         host_integerp and tree_low_cst directly.  Move misapplied hunk
3794         for optimization wher SRC and DEST point to the same location.
3795         (expand_builtin_mempcpy): From here.
3796         (expand_builtin_memmove): Use integer_zerop instead of testing
3797         host_integerp and tree_low_cst_directly.
3798         (expand_builtin_memset): Likewise.
3799         (expand_builtin_memcmp): Likewise (and for integer_onep).
3800         (expand_builtin_strncmp): Likewise.
3801         (fold_builtin): Call the appropriate fold_builtin_foo functions
3802         to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
3803         strcmp and strncmp.
3804
3805 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
3806
3807         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
3808         prototype.  Clean up some whitespace.
3809         * config/darwin.c: Use gen_rtx_FOO (...) rather than
3810         gen_rtx (FOO, ...).
3811         (machopic_non_lazy_ptr_name): Make static.
3812         (name_needs_quotes): Allow '.' and '$' unquoted.
3813         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
3814         case.
3815
3816 2003-10-15  Gábor Lóki  <alga@rgai.hu>
3817
3818         * fold-const.c (tree_swap_operands_p): Disable some features
3819         when optimizing for size.
3820
3821 2003-10-15  David Daney  <ddaney@avtrex.com>
3822
3823         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
3824         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
3825         from leaf functions.
3826         (DWARF_FRAME_RETURN_COLUMN): Ditto.
3827         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
3828         by MD_FALLBACK_FRAME_STATE_FOR.
3829         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
3830
3831 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
3832
3833         * genmodes.c: Include hashtab.h.
3834         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
3835         (adj_bytesize, adj_alignment, adj_format, new_adjust)
3836         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
3837         (print_maybe_const_decl, emit_mode_adjustments): New.
3838         (known_modes): Rename to modes.
3839         (find_mode): Kill class argument; look up in hash table.
3840         (new_mode): Insert into hash table also.
3841         (new_adjust): New.
3842         (reset_float_format, make_partial_integer_mode)
3843         (make_vector_mode): Tweak error reporting.
3844         (reset_float_format): Correct type of fourth argument.
3845         (emit_insn_modes_h): Add #defines to help make mode_size,
3846         mode_base_align, and real_format_for_mode conditionally const.
3847         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
3848         (emit_real_format_for_mode): Likewise, but temporarily disabled.
3849         (emit_insn_modes_c): Call emit_mode_adjustments.
3850         (main): Initialize modes_by_name.
3851         * Makefile.in: Update dependencies.
3852         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
3853         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
3854         declarations of mode_size and mode_base_align.  Declare
3855         init_adjust_machine_modes.
3856         * toplev.c (backend_init): Call init_adjust_machine_modes.
3857
3858 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
3859
3860         * genmodes.c (calc_wider_mode): Allocate enough room for all the
3861         entries we'll possibly assign in the sort buffer.
3862
3863 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
3864
3865         * config.gcc (s390x-ibm-tpf*): New target.
3866         * doc/install.texi: Document it.
3867         * config/s390/t-tpf: New file.
3868         * config/s390/tpf.h: New file.
3869
3870 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
3871
3872         PR target/12598
3873         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
3874         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
3875         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
3876         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
3877         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
3878         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
3879         replace_equiv_address, not gen_rtx_MEM.
3880         * config/cris/cris.c (cris_mem_op): New match_operator function.
3881         (cris_notice_update_cc): Use replace_equiv_address, not
3882         gen_rtx_MEM.
3883         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
3884
3885 2003-10-15  Bernardo Innocenti <bernie@develer.com>
3886
3887         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
3888         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
3889         definitions after the other flags.
3890
3891 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
3892
3893         * c-parse.in (methoddef, methodproto): Call objc_add_method()
3894         instead of add_method().
3895         * objc/objc-act.c (objc_check_decl): Do not check for
3896         constant_string_type.
3897         (add_method): Rename to objc_add_method().
3898         (really_start_method): Call objc_add_method() instead of
3899         add_method().
3900         * objc/objc-act.h (add_method): Rename to objc_add_method().
3901
3902 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
3903
3904         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
3905         (s390_slb_comparison): Likewise.
3906         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
3907         New functions.
3908         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
3909         and s390_slb_comparison.
3910         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
3911         zSeries machines.
3912         ("*adddi3_31z", "*subdi3_31z"): New insns.
3913         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
3914         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
3915         New insns.
3916
3917 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
3918
3919         * configure.in: Clean up some feedback echoes.
3920         * configure: Regenerate.
3921
3922         * aclocal.m4: Properly quote names of macros being defined.
3923
3924         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
3925
3926 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
3927
3928         * config/ia64/ia64.c (ia64_expand_call): Force function address
3929         to DImode.
3930         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
3931
3932 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
3933
3934         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
3935         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
3936         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
3937         "*divsf3_ibm"): Likewise.
3938
3939 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
3940
3941         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
3942         target_alias with target_noncanonical.
3943
3944 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
3945
3946         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
3947         and add case for machines where outgoing register parameters
3948         get stack space.
3949
3950         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
3951         register when generating indirect address.
3952
3953 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
3954
3955         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
3956         * arm.md (cbranchne_decr1): Fix bootstrap warning.
3957
3958 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3959
3960         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
3961         * fixinc/fixincl.x: Regenerate.
3962         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
3963         testcase.
3964         Fixes PR bootstrap/9330.
3965
3966 2003-10-13  Eric Christopher  <echristo@redhat.com>
3967
3968         * config/frv/frv.c (frv_adjust_field_align): Redo check for
3969         too wide bitfields.
3970         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
3971         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
3972         (SBSS_SECTION_ASM_OP): Remove.
3973         (EXTRA_SECTIONS): Remove in_sbss.
3974         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
3975         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
3976         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
3977         named_section.
3978
3979 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
3980
3981         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
3982         uses of ${target_alias} for directory names (and other places which
3983         won't like the empty string) with ${target_noncanonical}.  Introduce
3984         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
3985         available.
3986         * configure: Regenerate.
3987
3988 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
3989
3990         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
3991         * config/arm/arm.md: For splits which rely on conditional moves,
3992         remove ! TARGET_IWMMXT condition.
3993
3994 2003-10-13  David S. Miller  <davem@redhat.com>
3995
3996         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
3997         (find_cond_trap): Always increment if we emit a conditional
3998         trap insn.
3999
4000 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
4001
4002         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
4003         with min-insn-modes.o.
4004         (STAGESTUFF): Add min-insn-modes.c.
4005         (genobjs): Add genmodes.o.
4006         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
4007         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
4008         (min-insn-modes.c, min-insn-modes.o): New rules.
4009         (s-modes): Also generate min-insn-modes.c.
4010         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
4011         * genmodes.c (struct mode_data): Add format field.
4012         (blank_mode, validate_mode, complete_mode): Update to match.
4013         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
4014         (_SCALAR_MODE): Kill.
4015         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
4016         (emit_insn_modes_c_header): Adjust.
4017         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
4018         (emit_min_insn_modes_c): New functions.
4019         (emit_insn_modes_c): Call emit_real_format_for_mode.
4020         (main): Add -m option to generate min-insn-modes.c.
4021         * machmode.h: Update documentation.  Add format argument to
4022         all uses of FLOAT_MODE.
4023         * real.c: Don't define real_format_for_mode here.
4024
4025         * dwarfout.c: Move default definition of PRINT_REG...
4026         * defaults.h: ...here.
4027         * print-rtl.c: Include tm_p.h.
4028         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
4029         Kill.
4030         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
4031         this entire block with #ifndef GENERATOR_FILE.
4032         * regclass.c: Unconditionally define reg_names.
4033         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
4034         Don't define DEBUG_REGISTER_NAMES.
4035         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
4036         redefinition of REGISTER_NAMES.
4037         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
4038
4039         * combine.c: Change all preprocessor conditionals on
4040         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
4041         for clarity.
4042         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
4043         * configure.in: Don't define EXTRA_CC_MODES.
4044         * configure, config.in: Regenerate.
4045         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
4046
4047         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
4048         May assume that GET_MODE_CLASS is accurate for extra CC modes
4049         at all times.
4050
4051         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
4052         number of arguments to aggregate_value_p.
4053
4054         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
4055         * machmode.def: Explain ARCH-modes.def.  Document
4056         RESET_FLOAT_FORMAT.  Improve commentary on various mode
4057         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
4058         XF, or TF modes here.  Remove backward-compatibility
4059         definition of CC.
4060
4061         * config/alpha/alpha-modes.def: New file; define TF mode.
4062         * config/arc/arm-modes.def: Define XF mode.
4063         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
4064         float format for SF and DF modes.
4065         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
4066         * config/i386/i386-modes.def: Define XF and TF modes.
4067         * config/i960/i960-modes.def: Define TF mode.
4068         * config/ia64/ia64-modes.def: Define TF and OI modes.
4069         * config/m68k/m68k-modes.def: New file; define XF mode.
4070         * config/mips/mips-modes.def: New file; define TF mode, reset
4071         formats for SF and DF modes.
4072         * config/pa/pa-modes.def: Define TF mode.
4073         * config/rs6000/rs6000.c: Define TF and PSI modes.
4074         * config/s390/s390-modes.def: Define OI mode.
4075         * config/sh/sh-modes.def: New file; define PSI mode.
4076         * config/sparc/sparc-modes.def: Define TF mode.
4077         * config/vax/vax-modes.def: New file; reset formats for SF and
4078         DF modes.
4079
4080         * config/c4x/c4x.c (c4x_override_options): No need to mess
4081         with real_format_for_mode or set REAL_MODE_FORMATs.
4082         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
4083         variable.
4084         * config/i386/i386.c (override_options): No need to set
4085         REAL_MODE_FORMATs here.
4086         * config/i960/i960.c (i960_initialize): Likewise.
4087         * config/m68k/m68k.c (m68k_override_options): Likewise.
4088         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
4089         for TFmode only if not the default.
4090         * config/mips/mips.c (override_options): Likewise.
4091         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
4092         DFmode only if not the default.
4093
4094         * config/i370/i370.h (RET_REG): Don't consider TFmode.
4095         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
4096         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
4097         of modes that don't appear anywhere in the machine description.
4098
4099         * config/arc/arc-modes.def, config/arm/arm-modes.def
4100         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
4101         * config/i386/i386-modes.def, config/i960/i960-modes.def
4102         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
4103         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
4104         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
4105         * config/sparc/sparc-modes.def: Convert to new style for
4106         declaring extra CC modes.
4107
4108 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
4109
4110         * cpplex.c (_cpp_clean_line): In the common case of a line
4111         with no trigraphs and no \-newline, avoid writing to memory.
4112         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
4113         of the buffer member.  Make c an uchar to avoid unnecessary
4114         sign extensions.
4115
4116 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4117
4118         * configure.in: Remove unnecessary test.
4119         * configure: Regenerate.
4120
4121         * configure.in: Fix grammatical error.  Move UWIN host error to...
4122         * config.host: Here.
4123         * configure: Regenerate.
4124
4125 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
4126
4127         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
4128         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
4129         of flag_unsafe_math_optimizations.
4130         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
4131         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
4132         fused-madd and no-fused-madd.
4133         * doc/invoke.texi: Documented the new options fused-madd and
4134         no-fused-madd for S/390.
4135
4136 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
4137
4138         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
4139         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
4140         assign DEFAULT_ABI.
4141         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
4142         * config/rs6000/rs6000.c: Formatting.
4143         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
4144         when rs6000_alignment_string given.
4145
4146 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4147
4148         PR target/12538
4149         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
4150         (sparc_flat_must_save_register_p): New function to decide whether
4151         a register must be saved/restored in the function prologue/epilogue.
4152         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
4153
4154 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
4155
4156         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
4157         ISO C90 function declarations and definitions.
4158         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
4159
4160 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
4161
4162         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
4163         config files which do the same thing.
4164         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
4165         config/freebsd6.h: Remove now unnecessary files.
4166
4167 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
4168
4169         * c-common.c (c_common_truthvalue_conversion): Warn if the
4170         address of a non-weak function is used as a truth value.
4171
4172 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
4173
4174         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
4175         a literal.
4176         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
4177         instead of a literal.
4178
4179 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
4180
4181         * doc/extend.texi (Function Attributes): Mention the exceptional
4182         path for noreturn-marked functions.
4183
4184 2003-10-12  Jan Hubicka  <jh@suse.cz>
4185
4186         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
4187         warning.
4188
4189 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
4190
4191         * config/i386/i386.c (x86_this_parameter): Fix typo.
4192
4193 203-10-11  Jan Hubicka  <jh@suse.cz>
4194
4195         * Makefile.in (web.o): New.
4196         * web.c: New file.
4197         * rtl.h (web_main): Declare.
4198         * timervar.def (TV_WEB): New.
4199         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
4200         (rest_of_hanle_web): New.
4201         (flag_web): New static variable.
4202         (lang_independent_options): Add "web".
4203         (rest_of_compilation): Call rest_of_handle_web.
4204         * invoke.texi (-fweb): Document.
4205         * common.opt (fweb): New.
4206         * flags.h (flag_web): New.
4207         * opts.c (decode_options): Set flag_web at -O3.
4208
4209         * passes.texi (web construction):  Document.
4210         * invoke.texi (-O3): Document that -fweb is enabled.
4211
4212         * regrename.c (regrename_optimize): Deal better with situation when
4213         replacement failed.
4214
4215         * sched-ebb.c: Include params.h and profile.h
4216         (schedule_ebbs):  Use tracer parameters to discover superblocks
4217         * Makefile.in (sched-ebb.o):  Add dependencies.
4218
4219 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4220
4221         * fold-const.c (negate_mathfn_p): New function to determine whether
4222         a built-in mathematical function is sign preserving, f(-x) == -f(x).
4223         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
4224         (tree_swap_operands_p): Change API to take an additional argument
4225         indicating that the swapped operands evaluate in reverse order.
4226         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
4227         operand side-effects or we don't care about flag_evaluation_order.
4228         (reorder_operands_p): New function to check whether its safe to
4229         evaluate the given operands in reverse order.
4230         (negate_expr_p):  We can always negate integer constants unless
4231         we honor -ftrapv and the signed type would overflow.  Only allow
4232         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
4233         negation of COMPLEX_CST if both real and imaginary parts can be
4234         negated.  Allow negation through floating point extensions and
4235         sign-preserving built-in functions.
4236         (negate_expr):  Move the code to negate integers from "fold" to
4237         here.  Always negate integer constants unless we honor -ftrapv
4238         and the signed type would overflow.  Always negate real constants
4239         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
4240         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
4241         Optimize negation through floating point extensions and
4242         sign-preserving built-in functions (as defined by negate_mathfn_p).
4243         (fold): Adjust calls to tree_swap_operands_p.
4244         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
4245         to negate_expr_p/negate_expr.
4246         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
4247         allowed to convert (-A) - B into (-B) - A.
4248
4249 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4250
4251         * builtins.c (expand_builtin_strcmp): Defend against the possibility
4252         that gen_cmpstrsi may fail: Stabilize the argument list against
4253         re-evaluation and expand the library call directly using this saved
4254         argument list if a cmpstrsi sequence can't be generated.
4255         (expand_builtin_strncmp): Likewise.
4256
4257         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
4258
4259 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4260
4261         PR optimization/12260
4262         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
4263         operations through CONST nodes.  Optimize (neg (plus X C)) as
4264         (minus -C X) for constant values C.
4265         (simplify_binary_operation): Optimize (minus (neg X) C) as
4266         (minus -C X) for constant values C.
4267         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
4268         instead create (minus -C X).
4269
4270 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4271
4272         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
4273         safe_from_p for us, once it chooses an evaluation order.
4274         (expand_expr <MULT_EXPR>): Likewise.
4275         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
4276         places the second operand in "target", swap the operands.
4277         (do_store_flag): Let expand_operands call safe_from_p for us.
4278
4279 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
4280
4281         PR optimization/12544
4282         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
4283         for DECL_NONLOCAL decls.
4284
4285 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4286
4287         * expr.c: Follow spelling conventions.
4288         * final.c: Likewise.
4289         * optabs.c: Likewise.
4290         * sched-deps.c: Likewise.
4291         * sdbout.c: Likewise.
4292
4293 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
4294
4295         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
4296         re-computing of variable.
4297
4298 2003-10-11  Richard Henderson  <rth@redhat.com>
4299
4300         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
4301         return_in_memory, make static, change signature to match target hook.
4302         (alpha_setup_incoming_varargs): Make static, change signature to
4303         match target hook, add code for vms and unicos.
4304         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
4305         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
4306         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
4307         TARGET_STRICT_ARGUMENT_NAMING,
4308         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
4309         * config/alpha/alpha-protos.h: Update.
4310         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
4311         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
4312         SETUP_INCOMING_VARARGS): Remove.
4313         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
4314         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
4315
4316 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
4317
4318         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
4319
4320 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4321
4322         * config/m68k/lb1sf68.asm: Follow spelling conventions.
4323         * config/m68k/m68k.c: Likewise.
4324         * config/m68k/m68k.h: Likewise.
4325         * config/m68k/m68k.md: Likewise.
4326
4327 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4328
4329         * builtins.c (expand_builtin_memcpy): Optimize case when the two
4330         pointer arguments are the equal, non-volatile and side-effect free.
4331         (expand_builtin_mempcpy): Likewise.
4332         (expand_builtin_memmove): Likewise.
4333         (expand_builtin_strcpy): Likewise.
4334         (expand_builtin_memcmp): Likewise.
4335         (expand_builtin_strcmp): Likewise.
4336         (expand_builtin_strncmp): Likewise.
4337
4338 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4339
4340         * combine.c (apply_distributive_law): Enable "distributive" floating
4341         point optimizations with -funsafe-math-optimizations.
4342
4343 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
4344
4345         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
4346
4347 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4348
4349         * config/m68k/m68k-protos.h: Remove the prototype for
4350         finalize_pic.
4351
4352 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4353
4354         * config/m68k/m68k.c: Fix comment typos.
4355
4356 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4357
4358         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
4359         int to bool.
4360         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
4361         (current_frame): New global var.
4362         (m68k_compute_frame_layout): Cache computations in current_frame.
4363         (m68k_initial_elimination_offset): Use values from current_frame
4364         instead of recomputing them.
4365         (use_return_insn): Likewise.
4366         (m68k_output_function_prologue): Likewise.
4367         (m68k_output_function_epilogue): Likewise.
4368         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
4369         inside the block for __pic__.
4370
4371 2003-10-11  Peter Barada <peter@baradas.org>
4372             Bernardo Innocenti  <bernie@develer.com>
4373
4374         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
4375         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
4376         (m68k_interrupt_function_p): New function.
4377         (m68k_handle_fndecl_attribute): Ditto.
4378         (m68k_compute_frame_layout): Ditto.
4379         (m68k_attribute_table): Define back-end specific attributes.
4380         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
4381         functions.
4382
4383 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4384
4385         * config/m68k/t-uclinux: New target Makefile fragment.
4386         * config/m68k/uclinux.h: New target macro file.
4387         * config.gcc (m68k-*-uclinux): New target definition.
4388
4389 2003-10-10  Roger Sayle  <roger@eyesopen.com>
4390
4391         * builtins.c (builtin_mathfn_code): Generalize to check whether
4392         the call is to any built-in function by comparing the call's
4393         argument list against the builtin decl's function type.
4394
4395 2003-10-10  Roger Sayle  <roger@eyesopen.com>
4396
4397         * cse.c (constant_pool_entries_regcost): New global variable to
4398         hold the register cost component of constant_pool_entries_cost.
4399         (fold_rtx): Calculate constant_pool_entries_regcost at the same
4400         time as constant_pool_entries_cost.
4401         (cse_insn): Set both src_folded_cost and src_folded_regcost from
4402         constant_pool_entries_cost and constant_pool_entries_regcost.
4403         (cse_main): Initialize constant_pool_entries_regcost to zero.
4404
4405         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
4406         the semantics of the sequence of bit operations used to negate
4407         a floating-point value.
4408         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
4409         the semantics of the bit operations used to abs a floating point
4410         value.
4411
4412 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4413             Paul Dale  <pauli@snapgear.com>
4414
4415         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
4416         support.
4417         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
4418         -fpic, -fPIC, -msep-data and -mid-shared-library.
4419         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
4420         (override_options): Add -msep-data and -mshared-library-id support.
4421         (m68k_output_function_prologue): Generate code to load A5 for
4422         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
4423         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
4424         (m68k_output_pic_call): New function.
4425         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
4426         (TARGET_ID_SHARED_LIBRARY): Ditto.
4427         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
4428         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
4429         (call_value): Likewise.
4430
4431 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
4432
4433         * gengenrtl.c (find_formats, genheader): Make i an unsigned
4434         int, remove cast of NUM_RTX_CODE.
4435         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
4436         entire file.  Remove the #ifs on GET_MODE_MASK etc and
4437         GET_MODE_WIDER_MODE etc.
4438
4439 2003-10-10  Eric Christopher  <echristo@redhat.com>
4440
4441         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
4442         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
4443         that set mode.
4444         * config/sh/sh.h (MODE_ENTRY): New macro.
4445         (MODE_EXIT): Ditto.
4446         (MODE_AFTER): Ditto.
4447         * config/sh/sh.md: Change for MODE_AFTER. Add
4448         fp_set attribute.
4449         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
4450
4451 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
4452
4453         * genmodes.c, mode-classes.def: New files.
4454         * machmode.def: Rewritten to genmodes.c interface.
4455         * Makefile.in (extra_modes_file): New substitution variable.
4456         (MACHMODE_H): No longer includes machmode.def or
4457         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
4458         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
4459         (OBJS-common): Add insn-modes.o.
4460         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
4461         genmodes$(build_exeext).
4462         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
4463         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
4464         (s-genrtl): Don't depend on $(RTL_BASE_H).
4465         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
4466         or $(RTL_BASE_H); just rtl.def.
4467         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
4468         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
4469         substitute definition of NUM_RTX_CODE.  Add casts to avoid
4470         warnings.
4471         * machmode.h: Include insn-modes.h, not machmode.def.  Include
4472         mode-classes.def to define enum mode_class.  Tweak definitions
4473         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
4474         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
4475         (inner_mode_array): Renamed mode_inner.
4476         (mode_base_align): New.
4477         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
4478         mode_unit_size, mode_wider_mode, mode_mask_array,
4479         inner_mode_array, class_narrowest_mode): Delete definitions.
4480         * stor-layout.c (get_mode_alignment): Use mode_base_align.
4481         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
4482         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
4483
4484         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
4485         No need to define BITS_PER_UNIT.
4486
4487 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4488
4489         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
4490         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
4491         (ia64_initialize_trampoline): If not using GAS, declare trampoline
4492         as global.
4493         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
4494         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
4495
4496         * stor-layout.c (compute_record_mode): Don't force BLKmode if
4497         field is zero-length BLKmode.
4498         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
4499         zero-size references.
4500
4501         * combine.c (distribute_links): Properly test for REG being set.
4502
4503         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
4504         gen_lowpart and company except for REG.
4505
4506 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4507
4508         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
4509
4510 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
4511
4512         * config.gcc (mips*-*-netbsd*): Remove content-free line.
4513
4514 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
4515
4516         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
4517         gcov_position_t and gcov_type.
4518
4519 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4520
4521         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
4522         * configure: Regenerate.
4523
4524 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
4525
4526         * config/h8300/h8300.md (define_asm_attributes): Specify
4527         the length of an asm insn more precisely.
4528
4529 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4530
4531         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
4532
4533 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
4534
4535         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
4536         FP register number to 48 and MAC16 accumulator to 0x210.
4537
4538 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
4539
4540         * config.gcc: Remove redundant thread_file setting clauses for
4541         various *-*-linux* targets.
4542
4543 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
4544
4545         * config/h8300/h8300.md (define_asm_attributes): New.
4546
4547 2003-10-09  Roger Sayle  <roger@eyesopen.com>
4548
4549         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
4550         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
4551
4552 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
4553
4554         * haifa-sched.c (ok_for_early_schedule): New function.
4555         (early_queue_to_ready): New function.
4556         (schedule_block): Allow early removal of insns from Q.
4557         (schedule_insn): Update INSN_TICK in case of premature
4558         issue.
4559         * common.opt (sched_stalled_insns): New flag.
4560         (sched_stalled_insns_dep): New flag.
4561         * flags.h: Same above flags.
4562         * opts.c: Same as above.
4563         * toplev.c: Same as above.
4564         * target.h (targetm.sched.is_costly_dependence): New
4565         hook.
4566         * target-def.h: Same as above.
4567         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
4568         Support new flag -msched-costly-dep.
4569         (DEFAULT_SCHED_COSTLY_DEP): Define.
4570         * config/rs6000/rs6000.c:
4571         (rs6000_is_costly_dependence): New function.
4572         (is_load_insn, is_store_insn): New functions.
4573         (is_load_insn1, is_store_insn1, is_mem_ref): New
4574         functions.
4575         * doc/invoke.texi (-fsched-stalled-insns-dep)
4576         (-fsched-stalled-insns, -msched-costly-dep): Document
4577         options.
4578         * doc/tm.texi (is_costly_dependence): Define new
4579         scheduler target hook.
4580
4581 2003-10-09  Jason Merrill  <jason@redhat.com>
4582
4583         PR c++/6392
4584         * c-common.c (c_build_qualified_type): Look through arrays first.
4585         (c_apply_type_quals_to_decl): Look through arrays.
4586
4587         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
4588         types with constructors.
4589
4590         * coverage.c (build_ctr_info_value): Use build_decl to make a
4591         VAR_DECL.
4592         (create_coverage): Likewise.
4593
4594         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
4595         here.
4596         (expand_asm_operands): Not here.
4597         (parse_input_constraint): No longer static.
4598         * tree.h: Declare it.
4599
4600 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
4601
4602         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
4603         libgcc_s.so.
4604         (SHLIB_INSTALL): Likewise.
4605
4606 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
4607
4608         * doc/install.texi: Remove reference to removed 'pthreads' thread
4609         option.
4610
4611 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
4612
4613         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
4614         operand 2.
4615
4616 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
4617
4618         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
4619         up related case statements.
4620         * configure.in: Don't accept --enable-threads=pthreads,
4621         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
4622         supported thread files in case clause.
4623         * configure: Regenerate.
4624
4625 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
4626
4627         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
4628         definition to above SPARC_STACK_BOUNDARY_HACK.
4629
4630 2003-10-08  Jason Merrill  <jason@redhat.com>
4631
4632         * c-pretty-print.c (pp_c_postfix_expression)
4633         <COMPOUND_LITERAL_EXPR>: Fix thinko.
4634
4635 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4636
4637         * mklibgcc.in: Don't hide undefined or typeless symbols.
4638
4639 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4640
4641         PR optimization/12142
4642         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
4643         uses of the register in the SET_SRC.  Remove unnecessary argument.
4644         * pa.c (legitimize_pic_address): Before reload, use a scratch register
4645         for the intermediate result in loading the address of a SYMBOL_REF.
4646         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
4647         which loads the SYMBOL_REF address.
4648
4649 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
4650             Eric Botcazou  <ebotcazou@libertysurf.fr>
4651
4652         PR bootstrap/12490
4653         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
4654         to define the size of the extern_C_braces array.  Set it to 200.
4655         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
4656
4657 2003-10-08  Carlo Wood  <carlo@alinoe.com>
4658
4659         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
4660         a space after the -o option.  flex 2.5.31 understands both, with
4661         and without the space. Removed that space.
4662
4663 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
4664
4665         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
4666         (compute_frame_size): Initialize it.  Remove the .cprestore slot
4667         from args_size.
4668         (mips_output_function_prologue): Simplify accordingly.
4669         (mips_debugger_offset): Change the mips16 frame pointer offset from
4670         current_function_outgoing_args to cfun->machine->frame.args_size.
4671         (mips_initial_elimination_offset): Likewise.
4672         (mips_expand_prologue): Likewise.
4673         (mips_expand_epilogue): Likewise.
4674
4675 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
4676
4677         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
4678         (EXTRA_MEMORY_CONSTRAINT): Define.
4679         (CAN_ELIMINATE): Remove lwu workaround.
4680         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
4681         Use a 'W' constraint for the source operand.
4682
4683 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
4684
4685         * genopinit.c (main): Output code to declare undefined
4686         variables.
4687
4688 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
4689
4690         * gengtype-lex.l: Remove -Wtraditional cruft.
4691         * Makefile.in (gengtype-lex.c): Likewise.
4692
4693 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4694
4695         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
4696
4697 2003-10-07  Jason Merrill  <jason@redhat.com>
4698
4699         PR c++/12519
4700         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
4701         it isn't a decl.
4702
4703 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
4704
4705         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
4706         not overridden.
4707         Fixes PR bootstrap/12173.
4708
4709 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
4710
4711         * errors.c: Don't include coretypes.h or tm.h.
4712         (trim_filename): Use IS_DIR_SEPARATOR.
4713         * Makefile.in: Update dependencies of errors.o and
4714         $(BUILD_PREFIX_1)errors.o.
4715
4716 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
4717
4718         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
4719         account when aligning arguments.
4720         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
4721         * defaults.h (STACK_POINTER_OFFSET): ... to here.
4722         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
4723         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
4724         (SPARC_STACK_BOUNDARY_HACK): Define.
4725         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
4726         arrange for vector parameters to varargs functions to be passed
4727         in both memory and GPRs when appropriate.
4728         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
4729         aligned.
4730
4731         * hooks.c (hook_bool_tree_true): New.
4732         (hook_rtx_tree_int_null): New.
4733         (hook_rtx_rtx_null): Use NULL, not 0.
4734         * hooks.h: Add 'extern' to everything.
4735         (hook_bool_tree_true): New.
4736         (hook_rtx_tree_int_null): New.
4737         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
4738         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
4739         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
4740         prototype.
4741         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
4742         (setup_incoming_varargs): Prototype.
4743         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
4744         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
4745         (TARGET_STRUCT_VALUE_RTX): Define.
4746         (TARGET_RETURN_IN_MEMORY): Define.
4747         (TARGET_SETUP_INCOMING_VARARGS): Define.
4748         (TARGET_STRICT_ARGUMENT_NAMING): Define.
4749         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
4750         (init_cumulative_args): Use rs6000_return_in_memory.
4751         (setup_incoming_varargs): Make 'static'.
4752         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
4753         (PROMOTE_FUNCTION_RETURN): Delete.
4754         (STRUCT_VALUE): Delete.
4755         (RETURN_IN_MEMORY): Delete.
4756         (SETUP_INCOMING_VARARGS): Delete.
4757
4758 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
4759
4760         * doc/invoke.texi (Warning Options): Simplify and clarify the
4761         descriptions of -Wnonnull and -Winit-self.
4762
4763 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
4764
4765         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
4766         indicees for floating-point conversersion libcalls.
4767
4768 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
4769
4770         * Makefile.in: Add more comments separating large conceptually
4771         separate sections.
4772
4773         * configure.in: Clean up thread file logic.
4774         * configure: Regenerate.
4775
4776 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
4777
4778         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
4779         (switch_to_section): Handle in_readonly_data.
4780         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
4781         readonly data.
4782
4783 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
4784
4785         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
4786         it.
4787         (cbranchne_decr1): New Thumb pattern.
4788         * arm.c (arm_addimm_operand): New insn predicate.
4789         * arm-protos.h: Add a prototype for it.
4790         * arm.h (PREDICATE_CODES): Add it.
4791
4792 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
4793
4794         * sched-int.h (sched_info): New field
4795         sched_max_insns_priority.
4796         * sched-rgn.c (init_ready_list): Add invocations to
4797         targetm.sched.adjust_priority.
4798         (sched_max_insns_priority): Init new field.
4799         * sched-ebb.c (sched_max_insns_priority): Init new field.
4800         * haifa-sched.c (set_priorities): Set
4801         sched_info->sched_max_insns_priority.
4802         * config/rs6000/rs6000.h:
4803         (rs6000_sched_restricted_insns_priority_str): Support new
4804         flag -mprioritize-restricted-insns.
4805         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
4806         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
4807         function.
4808         (rs6000_adjust_priority): Change priority of restricted
4809         insns, using above new function and new flag.
4810         * doc/invoke.texi (-mprioritize-restricted-insns): Document
4811         new option.
4812
4813 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
4814
4815         * expr.c (cmpstr_optab, cmpmem_optab): New.
4816         * genopinit.c: Initialize them.
4817         * optabs.h: Declare them.
4818         * optabs.c (init_optabs): Clear them.
4819         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
4820         block memory compare insns, not conditional chains.  Restructure
4821         the fallback generation of a call to memcmp/bcmp for better
4822         readability.
4823
4824 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
4825
4826         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
4827         (mips_save_restore_fn): New typedef.
4828         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
4829         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
4830         (save_restore_insns): Remove, replacing with...
4831         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
4832         (mips_save_reg, mips_restore_reg): New function.
4833         (mips_expand_prologue, mips_expand_epilogue): Rework.
4834         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
4835         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
4836         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
4837
4838 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
4839
4840         * config/mips/mips.c (mips_expand_prologue): Remove unused
4841         traversal of function arguments.
4842
4843 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
4844
4845         * doc/invoke.texi: Remove documentation of -mentry.
4846         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
4847         (override_options, mips_save_reg_p): Remove handling.
4848         (compute_frame_size, mips_output_function_prologue): Likewise.
4849         (mips_expand_prologue, mips_expand_epilogue): Likewise.
4850         * config/mips/mips.h (mips_entry_string): Remove declaration.
4851         (TARGET_OPTIONS): Remove -mentry.
4852         * config/mips/mips16.S: Remove mention of -mentry.
4853
4854 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
4855
4856         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
4857         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
4858         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
4859         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
4860         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
4861         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
4862         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
4863         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
4864         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
4865         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
4866         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
4867         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
4868         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
4869         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
4870         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
4871         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
4872         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
4873         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
4874         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
4875         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
4876         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
4877         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
4878         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
4879         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
4880         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
4881         (fixunstfti_libfunc): Delete.
4882         * optabs.h (struct optab_handlers): Break out of struct optab.
4883         (struct convert_optab, convert_optab, enum convert_optab_index,
4884         convert_optab_table, sext_optab, zext_optab, trunc_optab,
4885         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
4886         sfloat_optab, ufloat_optab): New.
4887         (set_conv_libfunc): Prototype.
4888         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
4889         (trunc_optab): Renamed btrunc_optab.
4890         * builtins.c (expand_builtin_mathfn): Update to match.
4891         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
4892         (convert_optab_table, new_convert_optab, init_convert_optab)
4893         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
4894         (set_conv_libfunc): New.
4895         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
4896         (expand_float, expand_fix): Use new conversion optabs,
4897         not old insn code tables or long chains of ifs.
4898         (init_optabs): No need to clear old insn code tables.
4899         Initialize the new optabs, not the old libfunc array entries.
4900         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
4901         * genopinit.c: Initialize conversion optabs, not the
4902         former insn code tables.  Remove unnecessary casts.
4903         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
4904         * expr.c (convert_move): Remove redundant check that
4905         to_real==from_real.  Use the conversion optabs instead
4906         of long chains of tests of modes.  Move partial-integer-mode
4907         interconversion above all integer conversion.  Do not recurse
4908         on a value forced into a register in the original mode.
4909
4910         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
4911         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
4912         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
4913         in new conversion optabs; do not reference the old libfunc
4914         array entries.  No need to include libfuncs.h.
4915
4916 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4917
4918         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
4919         point comparison sequence with a REG_EQUAL note that describes
4920         the comparison's semantics.
4921
4922 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4923
4924         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
4925         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
4926
4927 2003-10-06  Roger Sayle  <roger@eyesopen.com>
4928             Zack Weinberg  <zack@codesourcery.com>
4929
4930         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
4931         instruction by using LCT_CONST and then calling emit_libcall_block
4932         ourselves.
4933
4934 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
4935
4936         PR optimization/11974
4937         * optabs.c (expand_unop): Promote libcall outmode according to
4938         hard_libcall_value.
4939
4940 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
4941
4942         * real.h (REAL_MODE_FORMAT): New macro.
4943         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
4944         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
4945         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
4946         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
4947         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
4948         directly to real_format_for_mode array, wherever possible.
4949
4950 2003-10-06  Devang Patel  <dpatel@apple.com>
4951
4952         * dwarf2out.c (is_main_source): Remove variable.
4953         (dwarf2out_start_source_file): Do not check is_main_source.
4954         Do not reset is_main_source.
4955         (dwarf2out_init): Do not initialize is_main_source.
4956
4957 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4958
4959         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
4960         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
4961         introduced some multi-line prototypes.
4962         * fixinc/fixincl.x: Regenerate.
4963
4964 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4965
4966         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
4967         * config/mips/mips.c (stack_operand): New predicate.
4968         * config/mips/mips.md: Use it for the destination of mips16 insns
4969         that store $31.
4970
4971 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4972
4973         * config/mips/mips.md (*lowsi): Renamed from lowsi.
4974         (*lowdi): Likewise lowdi.
4975         (*lowsi_mips16, *lowdi_mips16): New patterns.
4976         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
4977         mips16 CONSTANT_RELOC handling.
4978         (mips_delegitimize_address): Adjust for new sdata representation.
4979
4980 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
4981
4982         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
4983         skip any remaining register arguments.
4984
4985 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
4986
4987         * reload.c (find_reloads_subreg_address): Use correct offset for
4988         paradoxical MEM subregs on big-endian targets.
4989
4990 2003-10-06  Andrew Haley  <aph@redhat.com>
4991
4992         * tree.c (get_callee_fndecl): Call
4993         lang_hooks.lang_get_callee_fndecl.
4994         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
4995         (lhd_get_callee_fndecl): New.
4996
4997 2003-10-06  Andrew Pinski  <apinski@apple.com>
4998
4999         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5000         error in calculating the length of the string.
5001         (machopic_stub_name): Likewise.
5002
5003 2003-10-06  Roger Sayle  <roger@eyesopen.com>
5004
5005         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
5006         describing the return value of the comparison libcall to the
5007         REG_RETVAL instruction of the emitted sequence.
5008
5009 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
5010
5011         PR optimization/12215
5012         * cse.c (cse_set_around_loop): Emit the move at the beginning
5013         of the next basic block for trapping sets.
5014
5015 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
5016
5017         PR optimization/11637
5018         * combine.c (adjust_for_new_dest): New function to adjust the
5019         notes and LOG_LINKS when the dest of an insn has changed.
5020         (try_combine): Use it when deleting the first insn of a two-insn
5021         parallel or splitting a two-load parallel.
5022
5023 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5024
5025         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
5026         if TARGET_EXPLICIT_RELOCS.
5027
5028 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
5029
5030         PR bootstrap/12512
5031         * Makefile.in (info): Use double-colon rules.
5032         (dvi): Likewise.
5033         (generated-manpages): Likewise.
5034         * configure.in: Do not create lang.info, lang.dvi, or
5035         lang.generated-manpages hooks.
5036         * configure: Regenerated.
5037         * objc/Make-lang.in (objc.info): Remove.
5038         (objc.dvi): Remove.
5039         (objc.generated-manpages): Remove.
5040         * doc/sourcebuild.texi: Update description of info, dvi, and
5041         generated-manpages hooks.
5042
5043 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5044
5045         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
5046
5047 2003-10-05  Andrew Pinski  <apinski@apple.com>
5048
5049         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5050         errors in memcpy destinations.
5051         (machopic_stub_name): Likewise.
5052
5053 2003-10-05  Andrew Pinski <apinski@apple.com>
5054
5055         * config/darwin.c (machopic_non_lazy_ptr_name):
5056         Change strcat to memcpy and add length together.
5057         (machopic_stub_name): Likewise.
5058
5059 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5060
5061         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
5062         signal trampoline codes.
5063
5064 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
5065
5066         * config/mips/mips.md (*divsf3): Move description of
5067         SB-1 F2 erratum from here to...
5068         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
5069         flag_unsafe_math_optimizations is not.
5070
5071 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
5072
5073         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
5074         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
5075
5076 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5077
5078         * c-pretty-print.c: Fix comment typos.
5079         * c-pretty-print.h: Likewise.
5080         * calls.c: Likewise.
5081         * cfgloopmanip.c: Likewise.
5082         * cgraphunit.c: Likewise.
5083         * cppfiles.c: Likewise.
5084         * final.c: Likewise.
5085         * function.c: Likewise.
5086         * gcov-io.h: Likewise.
5087         * gcse.c: Likewise.
5088         * genoutput.c: Likewise.
5089         * loop.c: Likewise.
5090         * postreload.c: Likewise.
5091         * reg-stack.c: Likewise.
5092         * regmove.c: Likewise.
5093         * sched-int.h: Likewise.
5094         * sched-rgn.c: Likewise.
5095         * simplify-rtx.c: Likewise.
5096         * tree-inline.c: Likewise.
5097         * config/m68hc11/m68hc11.h: Likewise.
5098         * config/mmix/mmix.c: Likewise.
5099         * config/mn10300/mn10300.md: Likewise.
5100         * config/sh/sh.h: Likewise.
5101
5102 2003-10-05  Richard Henderson  <rth@redhat.com>
5103
5104         * tree-inline.c (remap_type): New.
5105         (remap_decl): Use it.  Remap DECL_SIZE*.
5106         (copy_body_r): Use it.
5107         (walk_tree): Walk TREE_TYPE too.
5108         (copy_tree_r): Don't walk subtrees of types.
5109         * tree.c (variably_modified_type_p): Restructure.  Consider integer
5110         types with non-const bounds variably modified.
5111
5112 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5113
5114         * doc/invoke.texi: Fix typos.
5115
5116 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5117
5118         * fold-const.c: Follow spelling conventions.
5119         * function.c: Likewise.
5120         * config/c4x/c4x.h: Likewise.
5121         * config/c4x/c4x.md: Likewise.
5122         * config/frv/frv.md: Likewise.
5123         * config/rs6000/aix.h: Likewise.
5124         * config/rs6000/linux64.h: Likewise.
5125         * config/xtensa/xtensa.c: Likewise.
5126
5127 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5128
5129         * c-pretty-print.c: Fix comment formatting.
5130         * cfglayout.c: Likewise.
5131         * cfgloopanal.c: Likewise.
5132         * cppcharset.c: Likewise.
5133         * dbxout.c: Likewise.
5134         * ggc-page.c: Likewise.
5135         * ggc.h: Likewise.
5136         * target.h: Likewise.
5137
5138 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
5139
5140         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
5141
5142 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
5143
5144         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
5145         Convert to ISO C90 function declarations and definitions.
5146
5147 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
5148
5149         * libfuncs.h
5150         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
5151         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
5152         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
5153         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
5154         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
5155         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
5156         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
5157         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
5158         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
5159         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
5160         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
5161         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
5162         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
5163         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
5164         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
5165         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
5166         Delete.
5167         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
5168         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
5169         (le_optab, unord_optab): New.
5170
5171         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
5172         from the code_to_optab table, not a giant switch; use
5173         swap_condition; do widening only if a comparison function that
5174         we can call exists in a wider mode, not if a cmp_optab insn or
5175         libfunc exists in a wider mode; call protect_from_queue
5176         exactly once on each operand.
5177         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
5178
5179         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
5180         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
5181         Set floating point comparison libfuncs using set_optab_libfunc
5182         on the appropriate optab.
5183
5184         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
5185         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
5186         selector conditionals.
5187
5188 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
5189
5190         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
5191         identical to m68hc12 as far as libraries are concerned.
5192
5193 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5194
5195         PR c/12446
5196         * c-typeck.c (convert_for_assignment): Issue an error for
5197         array to pointer assignment after default conversion.
5198         (digest_init): Likewise.
5199
5200 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
5201
5202         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
5203
5204 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
5205
5206         * doc/extend.texi (Function Attributes): Fix title of GNU C
5207         Preprocessor manual.
5208         (C++ Extensions): Fix reference to "Predefined Macros" in the
5209         GNU C Preprocessor manual.
5210
5211 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
5212
5213         * doc/extend.texi: Document how GCC estimates and relies on the size
5214         of an asm.
5215
5216 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
5217
5218         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
5219         arguments downward for big-endian o64.
5220
5221 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
5222
5223         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
5224         PCH generation, avoiding too-frequent flushes when writing to NFS
5225         file system.
5226
5227 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
5228
5229         * objc/objc-act.c (lookup_category): Mark as 'inline'.
5230
5231 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
5232             Ziemowit Laski  <zlaski@apple.com>
5233
5234         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
5235         New functions.
5236         (lookup_method_in_hash_lists): New parameter indicating whether
5237         we are messaging 'Class' or 'id'.
5238         (check_duplicates): Likewise; do not assume all methods will
5239         be either class or instance methods.
5240         (generate_category, finish_class): Use lookup_category().
5241         (add_method): Use add_method_to_hash_list(); insert instance
5242         methods of root classes into the global class method hash table.
5243         (add_category): Use lookup_category(); avoid constructing
5244         duplicate categories.
5245         (really_start_method): Add method to corresponding @interface,
5246         if not already there (and if the @interface exists).
5247         (finish_message_expr, finish_objc): Adjust calls to
5248         check_duplicates().
5249
5250 2003-10-03  Roger Sayle  <roger@eyesopen.com>
5251
5252         PR optimization/9325, PR java/6391
5253         * fold-const.c (fold_convert): For floating point to integer
5254         conversions, return the maximum/minimum representable integer
5255         value if the real constant overflows the destination type.
5256         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
5257         meaning don't truncate the result to a floating point mode.
5258         Simplify the logic by calling real_from_integer directly.
5259         * simplify-rtx.c (simplify_unary_operation):  Implement the
5260         same semantics for folding floating point to integer conversions
5261         in RTL.
5262
5263 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
5264
5265         * config/mips/mips.c (mips_emit_prefetch): Restructure
5266         to avoid use of arrays, handle indexed prefetch.
5267         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
5268         (ISA_HAS_PREFETCHX): New deffine.
5269         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
5270         update comments.
5271         (prefetch_indexed_di, prefetch_indexed_si): New insns.
5272
5273 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
5274             Roger Sayle  <roger@eyesopen.com>
5275
5276         PR optimization/12289
5277         * calls.c (emit_call_1): Pretend to have popped the arguments
5278         to noreturn and longjmp functions instead of ignoring them.
5279         (expand_call): Don't adjust stack_pointer_dela while
5280         inhibit_defer_pop is set.
5281
5282 2003-10-03  Andreas Schwab  <schwab@suse.de>
5283
5284         PR bootstrap/12276
5285         * configure.in: Check for libunwind on the host only if building
5286         a native compiler.
5287         * configure: Regenerated.
5288
5289 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
5290
5291         * unwind-pe.h (read_encoded_value_with_base): Constify u and
5292         its inizialization cast.
5293
5294 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
5295
5296         PR target/12485
5297         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
5298
5299 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
5300
5301         PR optimization/12180
5302         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
5303         functions containing calls to __builtin_next_arg.
5304
5305 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
5306
5307         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
5308         in instructions being output.
5309         * config/mips/mips.md (prefetch_si_address): Change third
5310         operand's constraint letter to 'I'.
5311         (prefetch_di_address): Likewise.
5312         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
5313
5314 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
5315
5316         * system.h: Poison macros obsoleted by earlier patch.
5317         * config/cris/cris.c: C90-ify a function definition.
5318
5319 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5320
5321         PR/12292
5322         * combine.c (make_field_assignment): Check whether rtx's code
5323         is CONST_INT before using INTVAL.
5324
5325 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5326
5327         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
5328         htab_find_slot_with_hash.
5329         (cgraph_node_for_identifier): Use NO_INSERT.
5330         (cgraph_remove_node): Use NO_INSERT.
5331         (cgraph_varpool_node): Use INSERT.
5332         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
5333
5334 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5335
5336         Waldek Hebisch <hebisch@math.uni.wroc.pl>
5337         PR/12072
5338         * varasm.c (compare_constant): Fix thinko.
5339
5340 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
5341
5342         * config/frv/frv.c (frv_issue_rate): New function.
5343         (frv_pack_insns): Use it.
5344         (TARGET_SCHED_ISSUE_RATE): Define.
5345
5346 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
5347
5348         * config/mcore/mcore.c: Convert to ISO C90 function declarations
5349         and definitions.
5350         * config/mcore/mcore.h: Likewise.
5351         * config/mcore/mcore-protos.h: Likewise.
5352
5353 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
5354
5355         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
5356         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5357
5358 2003-10-01  Per Bothner  <pbothner@apple.com>
5359
5360         * c-lex.c (src_line):   Remove unneeded static variable.
5361         (cb_line_change):  Set input_line directly, instead of src_line.
5362         (get_non_padding_token):  We no longer need to compensate for the
5363         "horrible things" the C++ front-end does with the current line number,
5364
5365         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
5366         callback even when popping the main file.
5367         * c-lex.c (fe_file_change):  Handle a NULL new_map.
5368         * fix-header.c (cb_file_change):  Likewise.
5369         * c-ppoutput.c (pp_file_change):  Likewise.
5370
5371         * cppinit.c (cpp_read_main_file):  Split into two functions:
5372         Distribute _cpp_stack_file call over the two functions.
5373         (cpp_find_main_file):  New function.
5374         Don't call _cpp_do_file_change even if working_directory flag set.
5375         (cpp_push_main_file):  New function.
5376         * cppfiles.c (_cpp_find_failed):  New helper function.
5377         (find_file):  Made non-static and renamed to _cpp_find_file.
5378         (_cpp_stack_file):  No longer needed.  But note the following.
5379         (stack_file):  Made non-static and renamed to _cpp_stack_file.
5380         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
5381         call with calls to cpp_find_main_file and cpp_push_main_file.
5382         (search_path_head):  If there is no current buffer, use main_file.
5383         * cpphash.h:  Update function declarations.
5384         * cpplib.h:  Update function declarations.
5385
5386         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
5387         (c_common_parse_file):  No longer need to call cpp_read_main_file
5388         when file_index > 0 (as in multi-file or server compiation).
5389         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
5390         as this now happens before cpp_push_main_file.
5391         (push_command_line_include):  When done with options, pass LC_LEAVE
5392         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
5393         (fe_file_change):  Handle NULL new_map, and simplify.
5394         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
5395         08-28 change, since we're never called with a NULL buffer.
5396         (_cpp_lex_direct):  Likewise.
5397         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
5398         Return false if buffer is NULL at end.
5399
5400         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
5401         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
5402         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
5403         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
5404         remove the unused return_at_eof parameter.
5405         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
5406         Update callers of cpp_push_buffer.
5407
5408 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
5409
5410         * target.h (init_libfuncs): New hook.
5411         * target-def.h: Default TARGET_INIT_BUILTINS and
5412         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
5413         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
5414         * builtins.c (default_init_builtins): Delete.
5415         * expr.h (default_init_builtins): Delete prototype.
5416         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
5417         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
5418         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
5419         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
5420         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
5421         and UMODDI3_LIBCALL,
5422
5423         * Makefile.in (optabs.o): Depends on target.h.
5424         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
5425         * optabs.c: Include target.h.
5426         (prepare_float_lib_cmp): No need for #ifdef around use of
5427         FLOAT_LIB_COMPARE_RETURNS_BOOL.
5428         (set_optab_libfunc): New function.
5429         (init_optabs): Delete use of all *_LIBCALL defines.
5430         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
5431         * optabs.h: Prototype set_optab_libfunc.
5432
5433         * config.gcc: Remove all references to pa/long_double.h,
5434         ia64/hpux_longdouble.h, and gofast.h.
5435         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
5436         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
5437
5438         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
5439         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
5440         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
5441         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5442         * config/sparc/sparc.c, config/vax/vax.c:
5443         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
5444         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
5445
5446         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
5447         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
5448         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
5449         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
5450         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
5451         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
5452         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
5453         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
5454         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
5455
5456         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
5457         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5458         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
5459         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5460         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
5461
5462         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
5463         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
5464         SUN_INTEGER_MULTIPLY_64 to 0.
5465         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
5466         SUN_INTEGER_MULTIPLY_64 to 1.
5467         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
5468         SUN_INTEGER_MULTIPLY_64 to 0.
5469         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
5470         Define US_SOFTWARE_GOFAST.
5471         * config/vax/vax.h: Default TARGET_ELF to 0.
5472         * config/vax/elf.h: Redefine TARGET_ELF to 1.
5473
5474         * config/gofast.h: Don't define any macros here.  Provide one
5475         static function, gofast_maybe_init_libfuncs, which does what
5476         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
5477         is already defined.  Do not clear negation libfuncs.  Do
5478         not mess with HFmode, XFmode, or TFmode libfuncs.
5479
5480         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
5481
5482 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
5483
5484         PR C/12466
5485         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
5486
5487 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5488
5489         * config/mips/xm-iris5.h: Remove, unnecessary.
5490         * config.build (mips-sgi-irix5*): Remove.
5491         (mips-sgi-irix6*o32): Likewise.
5492         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
5493         (mips-sgi-irix5cross64): Likewise.
5494         (mips-sgi-irix5*): Likewise.
5495         * config.host (mips-sgi-irix5*): Remove.
5496         (mips-sgi-irix6*o32): Likewise.
5497
5498 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
5499
5500         * dbxout.c (dbxout_fptype_value): Delete.
5501         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
5502
5503 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
5504
5505         * output.h (compute_reloc_for_constant): Declare.
5506         * varasm.c (compute_reloc_for_constant): Extract from...
5507         (output_addressed_constants): ... here.  Adjust all callers.
5508
5509 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5510
5511         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
5512         * configure: Rebuilt.
5513
5514 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5515
5516         * fold-const.c (make_range): When handling unsigned, don't reverse
5517         range if high bound is zero.
5518
5519 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
5520
5521         * config/frv/frv.h (PREDICATE_CODES): Added
5522         condexec_si_media_operator, condexec_sf_add_operator and
5523         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
5524         and condexec_sf_unary_operator.
5525
5526 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5527
5528         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
5529         * configure: Rebuilt.
5530
5531 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5532
5533         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
5534         Allow override.
5535         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
5536
5537 2003-09-23  David S. Miller  <davem@redhat.com>
5538
5539         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
5540         before redefining.
5541         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5542
5543 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
5544
5545         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
5546         C90 function declarations and definitions.
5547
5548 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
5549
5550         * config.gcc (cris-*-linux*): Revert mistaken commit.
5551
5552 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
5553
5554         PR optimization/11753
5555         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
5556         the length in the non-V9 case.
5557
5558 2003-09-30  Richard Henderson  <rth@redhat.com>
5559
5560         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
5561         DWARF_ALT_FRAME_RETURN_COLUMN.
5562         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
5563         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
5564         (uw_frame_state_for): Return end-of-stack for null return address.
5565         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
5566
5567         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
5568         (alpha_expand_prologue): Store a zero for it.
5569         (alpha_expand_epilogue): Don't reload it.
5570         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
5571         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
5572         for the sigframe return address.
5573
5574 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
5575
5576         * sdbout.c: Convert to ISO C90 prototypes.
5577         * objc/objc-act.c: Likewise.
5578
5579 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
5580
5581         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
5582         * config/i386/winnt.c: Likewise.
5583         * config/i386/cygming.h: Likewise.
5584
5585 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
5586
5587         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5588         (A ^ B) - B for any B.
5589
5590 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
5591
5592         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
5593         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
5594
5595 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
5596
5597         * arm/ieee754-sf.S: Tidy formatting.
5598
5599 2003-09-30  Nicolas Pitre  <nico@cam.org>
5600
5601         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
5602         and ARM_MOD_BODY.
5603         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
5604         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
5605         added better divisor alignment in the other case.
5606         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
5607         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
5608         macros above, add fast exits for divisor >= dividend, etc.
5609
5610 2003-09-30  Nicolas Pitre  <nico@cam.org>
5611
5612         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
5613         L_fixdfsi target.
5614         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
5615
5616 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
5617
5618         * config.gcc: Default use_fixproto to 'no'.
5619
5620 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
5621
5622         PR optimization/12345
5623         * config/mips/mips-protos.h (mips_restore_gp): Remove.
5624         (mips_gp_save_slot): Declare.
5625         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
5626         (mips_gp_save_slot): ...this new function.
5627         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
5628         and mips_output_move to generate the output template.
5629         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
5630         a gp load after a noreturn call.  Load the gp using a move rather
5631         than an exception_receiver pattern.
5632         (call_value_internal, call_value_multiple_internal): Likewise.
5633         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
5634
5635 2003-09-30  Carlo Wood  <carlo@alinoe.com>
5636
5637         PR debug/12319
5638         * cfglayout.c (insn_scope):  Use prologue_locator and
5639         epilogue_locator; return the outer function scope for
5640         pro- and epilogue insns.
5641
5642 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
5643
5644         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
5645         REAL_TYPEs based on the bitsize of the type's mode, not the
5646         mode directly.
5647
5648 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5649
5650         * dwarf2out.c (default_eh_frame_section): Split into ...
5651         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
5652         functions.
5653         * output.h (named_section_eh_frame_section): Declare.
5654         (collect2_eh_frame_section): Likewise.
5655
5656 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
5657
5658         * real.c (real_sqrt): Use get_canonical_qnan directly.
5659
5660         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
5661
5662         * varasm.c (assemble_real): Use real_to_target directly,
5663         calculate the number of significant elements of the result
5664         array and write them out in a loop, instead of using a giant
5665         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
5666         macro.
5667
5668 2003-09-29  Jan Hubicka  <jh@suse.cz>
5669
5670         PR c++/12175
5671         * varasm.c (notice_global_symbol): Discard external symbols.
5672
5673         PR optimization/12286
5674         * gcov-io.c (gcov_read_words): Fix memmove call.
5675         * profile.c (compute_branch_probabilities): Add extra sanity checks.
5676
5677 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5678
5679         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
5680         Solaris 7-9.
5681
5682         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
5683         wildcards which explicitly match micro versions.
5684         * fixinc/fixincl.x: Regenerate.
5685
5686 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5687
5688         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5689         (A ^ B) - B, where B is any power of 2 minus 1.
5690
5691 2003-09-29  Jan Hubicka  <jh@suse.cz>
5692
5693         * libgcov.c (gcov_exit): Fix two pastos.
5694
5695 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5696
5697         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
5698         define_split immediately below to form define_insn_and_split.
5699
5700 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5701
5702         * config/h8300/h8300.md (*tstsi_variable_bit): New.
5703         (*tstsi_variable_bit_qi): Likewise.
5704
5705 2003-09-28  Phil Edwards  <phil@codesourcery.com>
5706
5707         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
5708         reference name.
5709
5710 2003-09-28  Richard Henderson  <rth@redhat.com>
5711
5712         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
5713         file and line separately.
5714
5715 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
5716
5717         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
5718         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
5719         "*subdi3_borrow_cconly"): New insns.
5720         ("*addsi3_sub", "*subsi3_sub"): Remove.
5721         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
5722         ("*subsi3_cc"): Fix op_type attribute.
5723
5724 2003-09-28  Richard Henderson  <rth@redhat.com>
5725
5726         * stmt.c (expand_asm_operands): Take a location_t, instead of
5727         individual file and line.
5728         * c-typeck.c (c_expand_asm_operands): Likewise.
5729         * tree.h (expand_asm_operands): Update decl.
5730         * c-common.h (c_expand_asm_operands): Likewise.
5731         * c-semantics (genrtl_asm_stmt): Update call.
5732
5733 2003-09-28  Philip Blundell  <philb@gnu.org>
5734
5735         * config/arm/arm.c (legitimize_pic_address): Check
5736         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
5737         (arm_assemble_integer): Likewise.
5738
5739 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
5740
5741         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
5742         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
5743         config/c4x/c4x.h:
5744         Convert to ISO C90 function declarations and definitions.
5745
5746 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
5747
5748         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
5749         Convert to ISO C90 function declarations and definitions.
5750
5751 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
5752
5753         * config/mips/mips.c (mips_constant_info): Add reloc field.
5754         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
5755         underlying symbol, not to an unspec.
5756         (mips_delegitimize_address, print_operand): Clean up accordingly.
5757
5758 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
5759
5760         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
5761         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
5762         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
5763         (mips_classify_constant): Use it.
5764         (mips_splittable_symbol_p): Add an offset argument.
5765         (mips_classify_address): Adjust call accordingly.
5766         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
5767         than a relocation unspec.  Update call to mips_splittable_symbol_p.
5768         Generalize the code that copes with symbols + invalid offsets.
5769         (print_operand): Allow '%R' to be applied to small data addresses.
5770         (mips_reloc_string): Remove RELOC_GPREL16.
5771         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
5772         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
5773         relocation operators.
5774         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
5775         constants accordingly.
5776
5777 2003-09-27  Roger Sayle  <roger@eyesopen.com>
5778
5779         * toplev.c (flag_evaluation_order): New global variable.
5780         * flags.h (flag_evaluation_order): Prototype here.
5781         * expr.c (expand_operands): If we need to preserve observable
5782         evaluation order, protect exp1 from clobbering exp0's result.
5783
5784 2003-09-28  Andreas Jaeger  <aj@suse.de>
5785
5786         * c-decl.c (finish_function): Convert definition to ISO C90.
5787         * ifcvt.c (mark_loop_exit_edges): Likewise.
5788         * ra-rewrite.c (emit_colors): Likewise.
5789
5790 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
5791
5792         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
5793         * config.gcc (arm*-*-uclinux*): Disable fixproto.
5794         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
5795         powerpc-*-eabialtivec*): Disable fixproto.
5796
5797 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
5798
5799         PR optimization/12340
5800         * loop.h (struct induction): Document the new semantics
5801         of the 'same' field for bivs.
5802         * unroll.c (biv_total_increment): Don't count the same
5803         biv increment several times.
5804         (loop_iterations) [GENERAL_INDUCT]: Likewise.
5805
5806 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
5807
5808         * unroll.c (loop_interations)[GT]: Add missing break.
5809
5810 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
5811
5812         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
5813         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
5814         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
5815         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
5816         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
5817         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
5818         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
5819         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
5820         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
5821         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
5822         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
5823         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
5824         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
5825         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
5826         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
5827         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
5828         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
5829         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
5830         config/alpha/xm-vms.h, config/arc/arc-modes.def,
5831         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
5832         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
5833         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
5834         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
5835         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
5836         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
5837         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
5838         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
5839         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
5840         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
5841         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
5842         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
5843         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
5844         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
5845         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
5846         config/i960/i960-c.c, config/i960/i960-coff.h,
5847         config/i960/i960-modes.def, config/i960/i960-protos.h,
5848         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
5849         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
5850         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
5851         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
5852         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
5853         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
5854         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
5855         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
5856         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
5857         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
5858         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
5859         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
5860         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
5861         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
5862         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
5863         config/mcore/mcore-protos.h, config/mcore/mcore.c,
5864         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
5865         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
5866         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
5867         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
5868         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
5869         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
5870         config/mips/vr.h, config/mn10300/linux.h,
5871         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
5872         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
5873         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
5874         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
5875         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
5876         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
5877         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
5878         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
5879         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
5880         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
5881         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
5882         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
5883         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
5884         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
5885         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
5886         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
5887         fixinc/fixinc.svr4: GNU CC -> GCC.
5888
5889 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
5890
5891         * objc/objc-act.c (tm_p.h): Tweak order.
5892         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
5893
5894 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
5895
5896         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
5897         Include t-slibgcc-elf-ver and t-linux in tmake_file.
5898         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
5899         Disable fixproto.
5900         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
5901         Disable fixproto.
5902         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
5903         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
5904
5905         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
5906
5907 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
5908
5909         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
5910         * objc/objc-act.c (tm_p.h): Include.
5911
5912 2003-09-26  Per Bothner  <pbothner@apple.com>
5913
5914         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
5915         No longer any need to reverse by recursion.
5916
5917 2003-09-26  Roger Sayle  <roger@eyesopen.com>
5918             Richard Henderson  <rth@redhat.com>
5919
5920         PR optimization/11741
5921         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
5922         appropriate set to match that in hash_scan_insn.  Fall back to
5923         the original copy method, if we can't validate changing insn.
5924         (pre_delete): Only delete instructions that have a single_set,
5925         instead of aborting when we encounter an PARALLEL insn with more
5926         then one SET.
5927
5928 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
5929
5930         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
5931         ("builtin_longjmp"): Insn deleted.
5932         ("save_stack_nonlocal"): Save literal pool base pointer behind
5933         backchain and stack pointer.
5934         ("restore_stack_nonlocal"): Restore literal pool base pointer.
5935         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
5936         the stack save area for the nonlocal goto case.
5937
5938 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5939
5940         PR bootstrap/12358
5941         * pa.c (output_bvb): Fix typo.
5942
5943 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5944
5945         * expmed.c (store_bit_field): Don't search for an integer mode
5946         unless we need the result.
5947
5948 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5949
5950         * expr.c (emit_move_insn_1): If there is no move pattern for the
5951         original mode, try using a pattern for the corresponding integer mode.
5952
5953 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
5954
5955         PR middle-end/9200
5956         * combine.c (if_then_else_cond): Tighten mode check.
5957
5958 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
5959
5960         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
5961         'struct _cpp_strbuf'.
5962
5963         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5964         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
5965         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
5966         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
5967         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
5968         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
5969         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
5970         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
5971         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
5972         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
5973         * config/i386/i386-aout.h, config/i386/i386-coff.h,
5974         config/i386/i386-interix.h, config/i386/i386-interix3.h,
5975         config/i386/i386-modes.def, config/i386/i386-protos.h,
5976         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
5977         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
5978         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
5979         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
5980         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
5981         "GNU compiler" -> GCC.
5982         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
5983         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
5984         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
5985         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
5986         config/i386/freebsd-aout.h, config/i386/freebsd.h,
5987         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
5988
5989 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
5990
5991         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
5992         "local" to the callgraph dump.  Output "after inlining" earlier.
5993         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
5994         callgraph dumps.  Correct misspellings.
5995         (cgraph_decide_inlining):  Output number of insns before inlining.
5996         Output the calling function into which a function is inlined.
5997         (cgraph_decide_small_functions): Format dump file like always_inline.
5998
5999 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
6000
6001         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
6002
6003 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
6004
6005         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
6006         FPR slots in the save area.
6007         (s390_emit_epilogue): Likewise.
6008
6009 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
6010
6011         * cgraph.h (cgraph_remove_edge): Declare.
6012         * cgraph.c (cgraph_remove_edge): Make extern.
6013         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
6014         instead of cgraph_remove_call.
6015
6016 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
6017
6018         * objc/objc-act.c (gen_declaration_1): Fix printf format.
6019
6020 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
6021
6022         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
6023         arm7tdmi core.
6024
6025 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
6026
6027         * config/darwin-protos.h (objc_image_info_section):
6028         New prototype.
6029
6030 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
6031
6032         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
6033
6034 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6035
6036         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
6037         tsc701 as a --with-cpu, --with-tune setting for sparc.
6038
6039 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
6040
6041         * c-parse.in (objc_try_stmt): Do not specify a %type.
6042
6043 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6044
6045         * config.gcc: New 'widely ported system' clause for rtems.
6046         Set thread file there, not in individual clauses.
6047
6048 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
6049
6050         PR target/6222
6051         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
6052         passed on the stack.
6053
6054 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6055
6056         * config.gcc (widely ported systems section): Mostly alphabetize
6057         by system.  Comment the case where we can't.
6058         * config.gcc (widely ported systems section): Reindent and clean up.
6059
6060         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
6061         Actually allow ep9312 as an arm --with-arch setting.
6062
6063         * config.gcc (*-hpux11): Disable fixproto.
6064
6065 2003-09-24  Phil Edwards  <phil@codesourcery.com>
6066
6067         PR pch/12112
6068         * gcc/cppfiles.c (pch_open_file): Return based on combined
6069         result of all files.
6070         (validate_pch): Return validate flag for current file.
6071
6072 2003-09-24  Roger Sayle  <roger@eyesopen.com>
6073
6074         PR bootstrap/12358
6075         * fold-const.c (tree_swap_operands_p): Only reorder operands when
6076         one of the operands is constant.
6077
6078 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
6079
6080         MERGE OF objc-improvements-branch into MAINLINE:
6081         * Makefile.in (C_OBJS): Add in stub-objc.o.
6082         (c-parse.y): Change sed demarcations to begin with '@@'.
6083         (stub-objc.o): New rule.
6084         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6085         flag_replace_objc_classes): New flags.
6086         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
6087         RID_AT_SYNCHRONIZED): New keywords.
6088         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6089         flag_replace_objc_classes): New flags.
6090         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
6091         objc_comptypes, objc_message_selector, lookup_objc_ivar,
6092         get_current_scope, objc_mark_locals_volatile): New prototypes,
6093         some moved from c-tree.h.
6094         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
6095         (finish_decl): Adjust where objc_check_decl() gets called.
6096         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
6097         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
6098         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
6099         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
6100         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
6101         '@@end_ifc', respectively.
6102         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
6103         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
6104         objc_finally_block): New rules.
6105         (component_decl_list2): Clean up semantic action for @defs construct.
6106         (component_decl, c99_block_start): Remove call to add_objc_decls().
6107         (poplevel): Add call to objc_clear_super_receiver().
6108         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
6109         constructs.
6110         (classdef, methodprotolist): Clean up/simplify.
6111         (methodprotolist2): Eliminate.
6112         (methodproto): Call add_method() instead of add_class_method() and
6113         add_instance_method().
6114         (receiver): Add TYPENAME production.
6115         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
6116         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
6117         AT_SYNCHRONIZED.
6118         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
6119         objc_comptypes, objc_message_selector)
6120         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
6121         struct and pointer types.
6122         (build_c_cast): Do not discard ObjC protocol qualifiers.
6123         (convert_for_assignment): Cache result of comp_target_types() instead
6124         of calling it more than once.
6125         * c.opt (fnext-runtime): Update description string.
6126         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
6127         New ObjC/ObjC++-specific flags.
6128         * function.h (GCC_FUNCTION_H): Header guard.
6129         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
6130         * stub-objc.c: New file, to be used to satisfy references to ObjC
6131         functions by the C and C++ front-ends.
6132         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
6133         * config/darwin.h (FUNCTION): Add in_objc_image_info.
6134         (SECTION_FUNCTION): Add objc_image_info_section.
6135         * doc/invoke.texi: Link to GCC web site for Objective-C information.
6136         (-fconstant-string-class): Update documentation.
6137         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
6138         -fzero-link): New documentation.
6139         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
6140         with '@@'.
6141         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
6142         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
6143         throughout; provide casts for return values from memory allocation
6144         functions (xmalloc, alloca, ggc_alloc, etc.).
6145         (OBJC_VOID_AT_END): New macro.
6146         (rtl.h): Do not #include any more.
6147         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
6148         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
6149         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
6150         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
6151         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
6152         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
6153         val_stack_pop): New.
6154         (objc_check_decl): Fix precondition for error message, along with
6155         the message itself.
6156         (lookup_and_install_protocols): Remove nonexistent protocols from
6157         protocol list instead of returning error_mark_node.
6158         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
6159         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
6160         (synth_module_prologue): General clean-up; construct NeXT-specific
6161         runtime API prototypes if needed.
6162         (build_string_class_template): Remove.
6163         (check_string_class_template, string_layout_checked): New.
6164         (build_objc_string_object): Generalize to work with
6165         -fconstant-string-class.
6166         (build_objc_symtab_template): Fix layout for the NeXT runtime.
6167         (build_metadata_decl): New.
6168         (forward_declare_categories): Call build_metadata_decl() instead of
6169         create_builtin_decl() et al.
6170         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
6171         void_list_node_1.
6172         (build_selector_reference_decl, build_class_reference_decl,
6173         build_objc_string_decl): Do not set TREE_READONLY.
6174         (get_proto_encoding): Do not call hack_method_prototype().
6175         (get_class_reference): Add failure mode for invalid class names;
6176         support -fzero-link; defer if in an ObjC++ template declaration.
6177         (objc_declare_alias, objc_declare_class): Fix up duplicate name
6178         lookup; check for global scope if in ObjC++.
6179         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
6180         RECORD_TYPE, IDENTIFIER_NODE, etc.)
6181         (objc_is_id): Removed.
6182         (objc_is_object_ptr): New function.
6183         (get_class_ivars_from_name): New function, used for @defs construct.
6184         (get_class_ivars): Add option to return raw ivars; create a
6185         ClASS_OWN_IVARS list for each class as needed.
6186         (objc_enter_block, objc_exit_block, objc_declare_variable,
6187         objc_build_throw_stmt, val_stack_push, val_stack_pop,
6188         objc_build_try_enter_fragment, objc_build_extract_expr,
6189         objc_build_try_exit_fragment, objc_build_extract_fragment,
6190         objc_build_try_prologue, objc_build_try_epilogue,
6191         objc_build_catch_stmt, objc_build_catch_epilogue,
6192         objc_build_finally_prologue, objc_build_finally_epilogue,
6193         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
6194         objc_build_synchronized_epilogue, build_objc_exception_stuff):
6195         New functions.
6196         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
6197         the future).
6198         (build_private_template): Fix up calls to get_class_ivars().
6199         (offset_is_register, forwarding_offset): Remove.
6200         (objc_method_parm_type, objc_encoded_type_size): New functions.
6201         (encode_method_prototype): Simplify to no longer depend on
6202         back-end information.
6203         (build_tmp_function_decl_xxx, build_tmp_function_decl,
6204         hack_method_prototype): Removed.
6205         (generate_protocol_references): Remove calls to
6206         build_tmp_function_decl().
6207         (generate_protocols): Adjust calls to encode_method_prototype().
6208         (build_class_template): Generate sel_id' and 'gc_object_type' fields
6209         for the NeXT runtime.
6210         (synth_forward_declarations): Call build_metadata_decl().
6211         (check_ivars): Check that the number of ivars matches also.
6212         (build_super_template): Modify super_type directly; disable debugging
6213         output while generating decl.
6214         (build_ivar_list_initializer): Skip list elements that are not
6215         FIELD_DECLs.
6216         (ivar_list_length): New function.
6217         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
6218         and encode_method_prototype() instead of encode_method_def().
6219         (build_shared_structure_initializer): Generate 'sel_id' field for
6220         the NeXT runtime.
6221         (generate_category): Do not set TREE_USED.
6222         (build_keyword_selector): Ditto; transform into a function argument
6223         chain.
6224         (get_arg_type_list): If there are no user-specified arguments, use
6225         '...'; use OBJC_VOID_AT_END.
6226         (check_duplicates): Add a parameter indicating whether methods or
6227         selectors are being checked.
6228         (receiver_is_class_object): Add parameters indicating whether
6229         receiver is 'self' or 'super'; robustify.
6230         (build_message_expr): Defer call to finish_message_expr() if
6231         inside an ObjC++ template.
6232         (lookup_method_in_hash_lists): New function.
6233         (finish_message_expr): Complete rewrite/fix.
6234         (build_objc_method_call): Ditto; factor out commonalities between
6235         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
6236         messenger variants on the NeXT.
6237         (lookup_instance_method_static, lookup_class_method_static):
6238         Fold into a single lookup_method_static() function with an
6239         additional parameter.
6240         (add_class_method, add_instance_method): Fold into a single
6241         add_method() function with an additional parameter.
6242         (add_category): Make duplicate categories a hard error in ObjC++.
6243         (add_instance_variable): Properly handle unnamed ivars, arrays of
6244         zero or no size and bitfields.  In ObjC++, check for nontrivial
6245         C++ class instances.
6246         (is_public): Allow C functions to access non-@public ivars, with
6247         a warning.
6248         (start_class): Move common initializations to
6249         synth_module_prologue(); check for global scope if in ObjC++.
6250         (continue_class): Fix calls to finish_struct().
6251         (objc_declare_protocols, start_protocol): Check for global scope
6252         if in ObjC++.
6253         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
6254         (encode_aggregate_within): Rewrite to properly distinguish
6255         struct tags from typedefs in both ObjC and ObjC++.
6256         (encode_bitfield, encode_complete_bitfield): Remove.
6257         (encode_next_bitfield, encode_gnu_bitfield): New functions.
6258         (encode_field_decl): Call encode_next_bitfield() or
6259         encode_gnu_bitfield() as needed.
6260         (synth_self_and_ucmd_args): New function.
6261         (start_method_def): Use it.
6262         (objc_types_are_equivalent): New function.
6263         (comp_proto_with_proto): Use it instead of comptypes(), since
6264         we need symmetry.
6265         (really_start_method): Use lookup_method_static() instead of
6266         lookup_class_method_static() and lookup_instance_method_static();
6267         Emit 'extern "C"' if in ObjC++ mode.
6268         (add_objc_decls): Removed.
6269         (UOBJC_SUPER_scope): New variable.
6270         (get_super_receiver): Move construction of 'super' from
6271         add_objc_decls(); remove dependency on struct objc_class.
6272         (encode_method_def): Removed; encode_method_prototype() is
6273         used instead.
6274         (objc_clear_super_receiver): New function.
6275         (objc_expand_function_end): Do not do anything for ordinary
6276         C functions.
6277         (finish_method_def): Mark ObjC methods as un-inlinable.
6278         (gen_declaration_1): Emit widths of bitfields.
6279         (finish_objc): Call generate_objc_image_info() if needed;
6280         use check_duplicates() when checking for selector duplicates.
6281         (generate_objc_image_info): New function.
6282         * objc/objc-act.h (add_instance_method, add_class_method,
6283         get_class_ivars): Remove prototypes.
6284         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
6285         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
6286         objc_build_catch_stmt, objc_build_catch_epilogue,
6287         objc_build_finally_prologue, objc_build_finally_epilogue,
6288         add_method, get_class_ivars_from_name): New prototypes.
6289         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
6290         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
6291         TRANSLATION_UNIT_DECLs.
6292         (OBJC_TYPE_NAME): New.
6293         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
6294         got included.
6295         (IS_SUPER): Robustify.
6296         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
6297         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
6298         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
6299         objc_exception_match_decl, objc_exception_throw_decl,
6300         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
6301         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
6302         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
6303         objc_catch_type): New ObjC/ObjC++ roots.
6304         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
6305         ObjC/ObjC++ tree node codes.
6306
6307 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
6308
6309         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
6310         code path that calls a handler.
6311
6312 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
6313
6314         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
6315         Disable fixproto.
6316
6317         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
6318         the section giving $with_cpu defaults by target.
6319
6320         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
6321         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
6322         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
6323         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
6324         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
6325         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
6326
6327 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
6328
6329         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
6330         together.  Protect load string instruction with TARGET_STRING.
6331         (movti_string): Collapse case 1 and 2 together.
6332
6333 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
6334
6335         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
6336
6337 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
6338
6339         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
6340         do...while(0)
6341
6342 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6343
6344         * config.gcc: Move use_fixproto=no from generic vxworks clause to
6345         specific one.
6346
6347         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
6348         (accidentally missed in last pass).
6349
6350 2003-09-23  Andrew Pinski  <apinski@apple.com>
6351
6352         PR bootstrap/12383
6353         * configure: Regenerate.
6354
6355 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6356
6357         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
6358         missed in last pass).
6359
6360 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
6361
6362         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
6363         constant.
6364
6365 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6366
6367         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
6368
6369         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
6370         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
6371         powerpcle-*-eabi*): Disable fixproto.
6372
6373         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
6374         specific FreeBSD clauses.
6375         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
6376         specific NetBSD clauses.
6377         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
6378         to specific OpenBSD clauses.
6379
6380 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6381
6382         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
6383         without adding a frame note.
6384         * pa.md (allocate_stack): Save pic register in new frame marker when
6385         generating pic code.
6386
6387 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
6388
6389         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
6390         cgraph_expand_functions.
6391
6392 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6393
6394         * Makefile.in (gnucompare*): Merge into ...
6395         (slowcompare*): ... here.
6396         (fastcompare*): New targets.
6397         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
6398         other "fast" cmp programs.
6399         * configure: Regenerate.
6400
6401 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6402
6403         * targhooks.c: Include output.h.
6404         * Makefile.in (targhooks.o): Add output.h to dependency list.
6405
6406 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6407
6408         * config.host: Removed superfluous newline.
6409
6410 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6411
6412         * config.gcc: Use ${target}, not $machine.
6413         * configure.in: Don't set $machine.
6414         * configure: Regenerate.
6415
6416 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
6417
6418         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
6419
6420         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
6421         pass zero-size arrays by reference.
6422         (rs6000_va_arg): Likewise.
6423
6424 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6425
6426         * config.gcc: Set use_fixproto=no in each specific *-gnu*
6427         configuration, rather than the generic one.
6428
6429 2003-09-23  Richard Henderson  <rth@redhat.com>
6430
6431         * tree-inline.c (remap_save_expr): Map new save_expr to identity
6432         rather than to error_mark_node.
6433
6434 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6435
6436         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
6437         Update description.
6438         * configure: Regenerate.
6439         * config.in: Likewise.
6440         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
6441         HAVE_GAS_SHF_MERGE value.
6442         * varasm.c (mergeable_string_section): Likewise.
6443         (mergeable_constant_section): Likewise.
6444
6445 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6446
6447         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
6448         value.
6449
6450 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6451
6452         * target.h (struct gcc_target): New member external_libcall.
6453         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
6454         (TARGET_ASM_OUT): Use it.
6455         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
6456         * targhooks.c: Convert to ISO C 90.
6457         (default_external_libcall): New function.
6458         * targhooks.h (default_external_libcall): Declare.
6459         * varasm.c (assemble_external_libcall): Use
6460         targetm.asm_out.external_libcall instead of
6461         ASM_OUTPUT_EXTERNAL_LIBCALL.
6462         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
6463         (mips_output_external_libcall): Declare.
6464         * config/mips/mips.c (mips_output_external_libcall): Change
6465         definition guard.
6466         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
6467         Only operate for O32 ABI.
6468         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
6469         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
6470         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
6471         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
6472
6473 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
6474
6475         * config.gcc: Do per-target disabling of fixproto here in clauses,
6476         not in t- fragments.
6477         * configure.in: Adjust to set STMP_FIXPROTO correctly.
6478         * configure: Regenerate.
6479         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
6480         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
6481         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
6482         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
6483         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
6484         t-interix, t-linux-aout:  Delete files consisting only of
6485         setting of STMP_FIXPROTO.
6486
6487         * config.host: Allow unknown hosts (not targets).  Allow
6488         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
6489         empty clauses.  Remove useless obsolete-configuration clause.
6490         Prune unsupported configuration list.  Collapse identical
6491         clauses for closely related systems.  Rewrite comment for
6492         unsupported hosts list.  Reorganize a little.
6493
6494 2003-09-22  Richard Henderson  <rth@redhat.com>
6495
6496         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
6497         not precision.
6498
6499 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
6500             Hartmut Penner  <hpenner@de.ibm.com>
6501             Segher Boessenkool  <boessen@de.ibm.com>
6502
6503         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
6504         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
6505         (rs6000_split_altivec_in_gprs): Rename to ...
6506         (rs6000_split_multireg_move): Add support for update addressing.
6507         * config/rs6000/rs6000-protos.h: Same.
6508         * config/rs6000/altivec.md: Same.
6509         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
6510         multiple GPRs.
6511         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
6512         (movti_power): Use new splitter for multiple GPRs.
6513         (movti_string): Same.
6514         (movti_ppc64): Same.
6515
6516 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
6517
6518         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
6519         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
6520
6521 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
6522
6523         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
6524         (andsi3): Set attr cc to set_zn when using shifts or adds.
6525
6526 2003-09-22  Bernardo Innocenti <bernie@develer.com>
6527
6528         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
6529
6530 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
6531
6532         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
6533         Resurrect -mrtd option.
6534
6535 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
6536
6537         PR target/12281
6538         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
6539         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
6540
6541 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
6542
6543         PR target/9786
6544         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
6545         after potential deletion of trapping insn. Avoids later ICE
6546         from call to fixup_abnormal_edges.
6547         (convert_regs_2): Stack the current block successors before
6548         processing this block, that is, before the potential deletion of
6549         dead edges by convert_regs_1, because these edges have been used
6550         to initialize the predecessors count.
6551
6552 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
6553
6554         * real.c: Fix several nits in the head comment.
6555
6556 2003-09-21  Richard Henderson  <rth@redhat.com>
6557
6558         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6559         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6560         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6561         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6562         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
6563
6564 2003-09-21  Richard Henderson  <rth@redhat.com>
6565
6566         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
6567         (TREE_FILENAME, TREE_LINENO): Likewise.
6568         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
6569         (TREE_LOCUS_SET_P): New.
6570         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6571         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6572         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6573         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6574         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
6575
6576 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
6577
6578         * config/vax/vax-protos.h: Convert to ISO C90.
6579         * config/vax/vax.c: Convert to ISO C90.
6580
6581 2003-09-21  Graham Stott  <grahams@btinternet.com>
6582
6583        PR target/12353
6584        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
6585
6586 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
6587
6588         PR target/12301
6589         * reorg.c (stop_search_p): Return 1 for insns that can
6590         throw internally.
6591
6592 2003-09-20  Richard Henderson  <rth@redhat.com>
6593
6594         * c-format.c (gcc_diag_char_table): Add %J.
6595         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
6596         (check_format_types): Fix wanted_type name lookup.
6597         (init_dynamic_diag_info): Setup %J.
6598         * diagnostic.c (text_specifies_location): Implement %J.
6599         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
6600         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
6601         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
6602         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
6603         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
6604
6605         * tree-inline.c: Include intl.h
6606         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
6607         * Makefile.in (tree-inline.o): Update.
6608
6609 2003-09-20  Roger Sayle  <roger@eyesopen.com>
6610
6611         * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
6612         transformation of a>=0 into (unsigned)a<0x80000000.
6613
6614 2003-09-20  Andrew Pinski <apinski@apple.com>
6615
6616         * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
6617
6618 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
6619
6620         * Makefile.in: Don't set (unused) DLLTOOL.
6621
6622         * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
6623         Remove obsolete references to ENQUIRE.
6624
6625 2003-09-19  Nathanael Nerode  <neroden@gcc.gnu.org>
6626
6627         * configure.in: Remove --with-elf, which doesn't work.
6628         * configure: Regenerate.
6629         * config.gcc: Remove references to $elf, which does nothing.
6630
6631         * config/i386/xm-vsta.h: Remove xm-file believed useless.
6632         * config.build (i386-vsta): Remove reference to it.
6633         * config.host (i386-vsta): Remove reference to it.
6634
6635 2003-09-19  Phil Edwards  <phil@codesourcery.com>
6636
6637         * doc/install.texi:  Document the multiple testsuite options.
6638
6639 2003-09-19  Gerald Pfeifer  <gerald@pfeifer.com>
6640
6641         * doc/install.texi (Specific): Add the specific versions of GCC
6642         where support for FreeBSD 1, HP-UX version 9 and older, and AIX
6643         version 3 and older was discontinued.
6644
6645 2003-09-19      Joel Sherrill <joel@oarcorp.com>
6646
6647         * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
6648         68881.
6649
6650 2003-09-19  Bernardo Innocenti  <bernie@develer.com>
6651
6652         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
6653         for -m68030, -m68020-60 and -m68020-40.
6654         * config/m68k/m68k.h (TARGET_68030): New target flag.
6655         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
6656         TARGET_REGPARM): Remove.
6657         * config/m68k/m68k.h: Regroup and renumber target flags.
6658         * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
6659         * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
6660         * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
6661         * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
6662         * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
6663
6664 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6665
6666         * config/m68k/t-rtems (m68k-*-rtems*): New.
6667         * config.gcc: Use config/m68k/t-rtems.
6668
6669 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6670
6671         * config/mips/t-rtems: New.
6672         * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
6673
6674 2003-09-19  Kelley Cook  <kelleycook@wideopenwest.com>
6675
6676         * cgraph.c: Fix typo in debugging output.
6677
6678 2003-09-19  T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6679             Eric Botcazou <ebotcazou@libertysurf.fr>
6680
6681         PR target/12166
6682         * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
6683
6684 2003-09-18  Mike Stump  <mrs@apple.com>
6685
6686         * c-ppoutput.c (print):  Use fileline typedef for field 'line'.
6687         (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
6688         cb_ident, cb_def_pragma):  Use fileline typedef.
6689         * cpphash.h (struct cpp_reader):  Likewise for field out.first_line.
6690
6691 2003-09-18  Danny Smith  <dannysmith@users.sourceforge.net>
6692
6693         * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
6694         total parm size if a parm has incomplete type.
6695         (gen_fastcall_suffix): Likewise.
6696
6697 2003-09-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6698
6699         * except.c (output_function_exception_table): Adjust last change
6700         to handle TYPE of INTEGER_CST.
6701
6702 2003-09-18  Mark Mitchell  <mark@codesourcery.com>
6703
6704         PR target/11184
6705         * builtins.c (expand_builtin_apply): Use convert_memory_address
6706         before returning the value.
6707
6708         * alias.c (find_base_value): Simplify use of
6709         convert_memory_address.
6710         (find_base_term): Likewise.
6711         * builtins.c (expand_builtin_stejmp_setup): Likewise.
6712         (expand_builtin_longjmp): Likewise.
6713         (expand_builtin_prefetch): Likewise.
6714         (get_memory_rtx): Likewise.
6715         (expand_builtin_return): Likewise.
6716         (expand_builtin_memcpy): Likewise.
6717         (expand_builtin_strncpy): Likewise.
6718         (expand_builtin_memset): Likewise.
6719         (expand_builtin_va_arg): Likewise.
6720         (expand_builtin_va_copy): Likewise.
6721         (expand_builtin_alloca): Likewise.
6722         * calls.c (expand_call): Likewise.
6723         * except.c (expand_builtin_extract_return_addr): Likewise.
6724         (expand_builtin_eh_return): Likewise.
6725         * explow.c (convert_memory_address): Define even when
6726         POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
6727         is already in the right mode.
6728         * explow.c (memory_address): Simplify use of convert_memory_address.
6729         (probe_stack_range): Likewise.
6730         * expmed.c (make_tree): Likewise.
6731         * expr.c (emit_block_move_in_libcall): Likewise.
6732         (expand_assignment): Likewise.
6733         (expand_expr): Likewise.
6734         * function.c (assign_parms): Likewise.
6735         (expand_function_end): Likewise.
6736         * integrate.c (copy_rtx_and_substitute): Likewise.
6737         * stmt.c (expand_computed_goto): Likewise.
6738
6739 2003-09-18  Roger Sayle  <roger@eyesopen.com>
6740
6741         * simplify-rtx.c (simplify_unary_operation): Only transform
6742         (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
6743         is -1.  RTL "not" is a bit-wise not, "~", not a logical not "!".
6744
6745 2003-09-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6746
6747         PR target/11674
6748         * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
6749
6750 2003-09-18  Roger Sayle  <roger@eyesopen.com>
6751
6752         * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
6753         PARITY_EXPR): Delete unused tree codes.
6754         * c-common.c (c_common_truthvalue_conversion): Delete references
6755         to FFS_EXPR and POPCOUNT_EXPR.
6756         * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
6757         (pp_c_expression): Likewise.
6758         * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
6759         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
6760         * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
6761         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
6762         BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
6763         and long long variants.
6764
6765 2003-09-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6766
6767         * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
6768         * c-pretty-print.c: Fix formatting.
6769         (pp_c_integer_constant): Append type annotation to literals.  Tidy.
6770         (pp_c_type_specifier): Tidy.
6771         (pp_c_compound_literal): New function.
6772         (pp_c_initializer): Simplify..
6773         (pp_c_initializer_list): Likewise.
6774         (pp_c_brace_enclosed_initializer_list): New function.
6775         (pp_c_postfix_expression): Simplify.
6776
6777 2003-09-17  Alexandre Oliva  <aoliva@redhat.com>
6778
6779         * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
6780         one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
6781
6782 2003-09-17  Richard Henderson  <rth@redhat.com>
6783
6784         * tree-optimize.c (tree_rest_of_compilation): Save and restore
6785         input_location.
6786
6787 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
6788
6789         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
6790
6791 2003-09-17  Richard Henderson  <rth@redhat.com>
6792
6793         * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
6794
6795 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6796
6797         * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
6798         * configure: Regenerate.
6799
6800 2003-09-17  Mark Mitchell  <mark@codesourcery.com>
6801
6802         PR debug/12066
6803         * dbxout.c (dbxout_init): Use a langhook to find builtin types.
6804         * langhooks-def.h (lhd_return_null_tree_v): New function.
6805         (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
6806         (LANG_HOOKS_DECLS): Add it to the intializer.
6807         * langhooks.c (lhd_return_null_tree_v): New function.
6808         * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
6809
6810 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
6811
6812         * configure.in: Quote gcc_config_arguments for configargs.h.
6813         * configure: Regenerated.
6814         * gccbug.in: Don't shell-expand gcc_config_arguments.
6815
6816 2003-09-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6817
6818         PR c++/11357
6819         * c-pretty-print.c (pp_c_floating_constant): Append
6820         type-annotation to floating constants.
6821
6822 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6823
6824         * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
6825         Define _ABIO32.
6826         Use it for _MIPS_SIM.
6827         * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
6828
6829         * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
6830         Moved ...
6831         * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
6832         updating comment.
6833         Fixes PR target/10190.
6834
6835 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
6836
6837         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
6838         to shared libraries.
6839
6840 2003-09-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
6841
6842         PR optimization/11646
6843         * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
6844         EDGE_ABNORMAL flag for EH edges.
6845         * toplev.c (rest_of_handle_cse): Delete unreachable blocks
6846         if dead edges were purged.
6847
6848 2003-09-16  Bernardo Innocenti  <bernie@develer.com>
6849
6850         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
6851         * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
6852         * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
6853         * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
6854
6855 2003-09-16  Ian Lance Taylor  <ian@wasabisystems.com>
6856
6857         * cfgcleanup.c (label_is_jump_target_p): Correct use of table
6858         returned by tablejump_p.
6859
6860 2003-09-16  Joel Brobecker  <brobecker@gnat.com>
6861
6862         * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
6863
6864 2003-09-16  Roger Sayle  <roger@eyesopen.com>
6865
6866         PR bootstrap/12269
6867         * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
6868         argument to be VOIDmode, taking the mode of the comparison from
6869         the operands.  Only call simplify_relational_operation if we
6870         know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
6871         if comparison has a floating point result.  Ensure that the
6872         result is always of the specified mode.
6873         (simplify_replace_rtx): Simplify call to simplify_gen_relational.
6874         (simplify_unary_operation): Ensure the correct mode and cmp_mode
6875         are always passed to simplify_gen_relational.  Simplify NOT of
6876         comparison operator in any mode, not just BImode.
6877         (simplify_ternary_operation): Correct tests on the return value
6878         of simplify_relational_operation to use const_true_rtx, not
6879         const1_rtx.  Abort if it ever returns a non-constant result.
6880
6881         * cfgloopanal.c (count_strange_loop_iterations): Use the function
6882         simplify_relational_operation, not simplify_gen_relational, if
6883         we're only interested in constant comparisons and will ignore
6884         non-constant results.
6885
6886 2003-09-16  Roger Sayle  <roger@eyesopen.com>
6887
6888         * fold-const.c (tree_swap_operands_p): New function to determine
6889         the prefered ordering of operands.
6890         (fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
6891         operands to commutative, comparison or ternary operators.  Replace
6892         uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
6893         transformation of A ? B : C into !A ? C : B.
6894
6895 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
6896
6897         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6898         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6899         * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6900         * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6901         * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6902         * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6903         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6904         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6905
6906 2003-09-16  Jason Merrill  <jason@redhat.com>
6907             Jakub Jelinek  <jakub@redhat.com>
6908
6909         * c-common.c (handle_warn_unused_result_attribute): New function.
6910         (c_common_attribute_table): Add warn_unused_result.
6911         (c_expand_expr): Issue warning when result of inlined function
6912         with warn_unused_result attribute is ignored.
6913         * calls.c (expand_call): Issue warning when result of function
6914         with warn_unused_result attribute is ignored.
6915         * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
6916         * expr.c (expr_wfl_stack): Define.
6917         (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
6918         pass const0_rtx as target.  Chain locations into expr_wfl_stack.
6919         * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
6920         bit if inlined function has warn_unused_result attribute.
6921         * input.h (expr_wfl_stack): Declare.
6922         * doc/extend.texi: Document warn_unused_result attribute.
6923
6924 2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
6925
6926         * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
6927
6928 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
6929
6930         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
6931         ATTRIBUTE_UNUSED.
6932         (call_insn_operand): For PIC, don't allow a direct call to a
6933         function in a different section than the current one.
6934
6935 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6936
6937         * doc/invoke.texi (Warning Options): Add missing hyphen before
6938         "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
6939         Move "-Wold-style-definition" to the C-only section.
6940         Fix the ordering of the warning options.
6941
6942 2003-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6943             Jeff Law  <law@redhat.com>
6944
6945         * gcse.c (remove_reachable_equiv_notes): New.
6946         replace_store_insn): Call it.  Update antic list.
6947         (store_killed_in_insn): Take REG_EQUAL notes into account.
6948         (build_store_vectors, delete_store): Add parameter to
6949         replace_store_insn call.
6950
6951 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
6952
6953         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
6954         SYMBOL_REF_LOCAL_P.
6955
6956 2003-09-15  Kazu Hirata  <kazu@cs.umass.edu>
6957
6958         * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
6959         (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
6960         * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
6961         Likewise.
6962         * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
6963         Likewise.
6964         * config/rs6000/rs6000.c (function_arg_padding): Likewise.
6965         * config/sparc/sparc.c (function_arg_padding): Likewise.
6966
6967 2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
6968
6969         * haifa-sched.c (schedule_block): Use ready_remove_first instead
6970         of choose_ready for non-dfa insn scheduling.
6971
6972 2003-09-15  Andreas Jaeger  <aj@suse.de>
6973             Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6974
6975         * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
6976         * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
6977         * c-parse.in: Warn about old-style parameter definition.
6978         * c-common.c: Define warn_old_style_defintion.
6979         * c-common.h: Declare it.
6980         * c.opt: Add Wold-style-defintion.
6981
6982 2003-09-15  Andreas Jaeger  <aj@suse.de>
6983
6984         * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
6985         * config/rs6000/rs6000.c: Likewise.
6986
6987 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6988
6989         PR optimization/10914
6990         * expr.h (get_condition, canonicalize_condition): Declaration changed.
6991         * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
6992         and canonicalize_condition calls.
6993         * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
6994         delete_null_pointer_checks): Ditto.
6995         * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
6996         * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
6997         * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
6998         (canonicalize_condition, get_condition): Allow to return comparisons
6999         of cc mode registers.
7000         * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
7001         cc mode registers comparison in condition.
7002
7003 2003-09-12  Mark Mitchell  <mark@codesourcery.com>
7004
7005         * coverage.c (create_coverage): Do not call pushlevel/poplevel.
7006         * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
7007         function.
7008         * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
7009
7010 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
7011
7012         * combine.c (simplify_comparison): Convert
7013         (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
7014         (eq (and (lshiftrt X Y) 1) 0).
7015
7016 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
7017
7018         * alias.c: Follow spelling conventions.
7019         * cpphash.h: Likewise.
7020         * fold-const.c: Likewise.
7021
7022 2003-09-14  Alexandre Oliva  <aoliva@redhat.com>
7023
7024         * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
7025         * c-lex.c (cb_line_change): Skip line changing whenever
7026         c-ppoutput.c would.
7027
7028 2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>
7029
7030         * ra.c: Convert to ISO C90 prototypes.
7031         * ra-build.c: Likewise.
7032         * ra-colorize.c: Likewise.
7033         * ra-debug.c: Likewise.
7034         * ra-rewrite.c: Likewise.
7035
7036 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
7037
7038         * Makefile.in (%.dvi): Remove excess $(docdir).
7039
7040 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
7041
7042         * function.c (STACK_BYTES): Move definition to head of file.
7043         (assign_parms): Don't pass current_function_pretend_args_size
7044         directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
7045         round current_function_pretend_args_size up to STACK_BYTES.  Skip any
7046         excess before laying out the argument.
7047
7048 2003-09-14  Andreas Jaeger  <aj@suse.de>
7049
7050         * objc/objc-act.c: Convert to ISO C90 prototypes.
7051         * objc/objc-act.h: Likewise.
7052
7053 2003-09-14  Olaf Hering  <olh@suse.de>
7054
7055         * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
7056
7057 2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>
7058
7059         PR target/12021
7060         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
7061         as they already are done in config/m68k/m68k.h.
7062         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
7063
7064         * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
7065         (machopic_output_stub): Only generate pic base symbols when using pic
7066         and generate them in the form L00000000$spb.
7067
7068 2003-09-13  Richard Henderson  <rth@redhat.com>
7069
7070         * cgraphunit.c (cgraph_assemble_pending_functions): Export.
7071         (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
7072         * cgraph.h: Update.
7073
7074 2003-09-12  Dale Johannesen  <dalej@apple.com>
7075
7076         * config/rs6000/rs6000.c: Fix typos in previous.
7077
7078 2003-09-12  Ziemowit Laski  <zlaski@apple.com>
7079
7080         * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
7081         when allocating pp->buffer.
7082
7083 2003-09-12  Geoffrey Keating  <geoffk@apple.com>
7084
7085         * config/darwin.c (machopic_select_rtx_section): Use
7086         const_data_section for things that might require relocation.
7087
7088 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
7089
7090         PR bootstrap/12264
7091         * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
7092
7093 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
7094
7095         * config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
7096         * config/xtensa/linux.h (ASM_SPEC): Likewise.
7097         * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
7098         -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
7099         -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
7100         -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
7101         -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
7102         -m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
7103         and redefine corresponding TARGET_* macros with constants from the
7104         xtensa-config.h header.
7105         * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
7106         for the options listed above.
7107
7108 2003-09-12  Dale Johannesen  <dalej@apple.com>
7109
7110         * config/rs6000/rs6000-protos.h:  Use C90 prototypes.
7111         * config/rs6000/rs6000-c.c:  Ditto.
7112         * config/rs6000/rs6000.c:  Ditto.
7113         * config/rs6000/ sysv4.h:  Ditto.
7114
7115 2003-09-12  Chris Lattner <sabre@nondot.org>
7116
7117         * loop.c: Move comments describing BIV's and GIV's to top of file
7118
7119 2003-09-12  Roger Sayle  <roger@eyesopen.com>
7120
7121         PR optimization/8967
7122         * alias.c (write_dependence_p): Modify to take an additional constp
7123         argument that controls whether the UNCHANGING_RTX_P flags are used.
7124         (anti_dependence, output_dependence): Adjust write_dependence_p
7125         callers to pass this additional argument, to return the same result.
7126         (unchanging_anti_dependence): New variant of anti_dependence that
7127         ignores the UNCHANGING_RTX_P property on memory references.
7128         * rtl.h (unchaning_anti_dependence): Prototype here.
7129         * flow.c (init_propagate_block): Place fake constant mem writes on
7130         the mem_set_list so that dead writes to const variables are deleted.
7131         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
7132         (mark_used_regs): Likewise.
7133
7134 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
7135
7136         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
7137         (mcore_secondary_reload_class): Declare.
7138         (mcore_output_inline_const_forced): Remove.
7139         * config/mcore/mcore.md (movsi): Remove the code that forced
7140         non-inlineable constants into a register if the target was r15
7141         or the stack pointer.  Remove constant restrictions from the main
7142         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
7143         of an r <- P alternative.  Remove fallback define_insn for reload.
7144         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
7145         define_insn.  Use mcore_output_move in the remaining define_insn.
7146         Adjust condition and constraints in the way as for movsi.
7147         (movdi): Always split unacceptable constants into two.  Use
7148         simplify_gen_subreg instead of operand_subword{,_force}.
7149         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
7150         (mcore_output_move): Support HImode and QImode moves as well.
7151         (mcore_m15_operand_p): New function.
7152         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
7153         (mcore_secondary_reload_class): New function.
7154         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
7155         terms of mcore_secondary_reload_class.
7156
7157 2003-09-11  Mike Stump  <mrs@apple.com>
7158
7159         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
7160
7161 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7162
7163         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
7164         MODE exactly, then only convert logN(N) -> 1.0 if
7165         flag_unsafe_math_optimizations is set.
7166
7167         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
7168         init_builtin_dconsts): Delete.
7169         * emit-rtl.c (dconstpi, dconste): Define.
7170         (init_emit_once): Initialize dconstpi & dconste.
7171         * real.h (dconstpi, dconste): Declare.
7172
7173 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
7174
7175         PR fortran/11522
7176         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
7177         for ultimate origin even if block is abstract.
7178
7179 2003-09-11  Roger Sayle  <roger@eyesopen.com>
7180
7181         * combine.c (combine_simplify_rtx): Move several NOT and NEG
7182         optimizations from here...
7183         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
7184         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
7185
7186 2003-09-11  Richard Henderson  <rth@redhat.com>
7187
7188         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
7189         Tweek tests for function already generated.
7190         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
7191         * cgraph.h (cgraph_finalize_function): Update for extra arg.
7192         * c-decl.c (finish_function): Likewise.
7193
7194 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
7195
7196         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
7197
7198 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
7199
7200         * real.c: Update URL to VAX floating point docs.
7201         (decode_vax_d): Extract 8 exponent bits instead of 7.
7202
7203 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
7204
7205         * combine.c (force_to_mode): Set fuller_mask based only on mask,
7206         not op_mode.
7207
7208 2003-09-11  Jan Hubicka  <jh@suse.cz>
7209
7210         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
7211         on why function is not inlinable; do not check
7212         the body.
7213         (inline_forbidden_p): Move to...
7214         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
7215         deal with alloca, longjmp.
7216         (inline_forbidden_p): New static function.
7217         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
7218         find_builtin_longjmp_call): Kill.
7219
7220 2003-09-10  Richard Henderson  <rth@redhat.com>
7221
7222         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
7223         * cgraphunit.c: Update to match.
7224         (record_call_1): Rearrange.  Call lang hook for language nodes.
7225         (cgraph_analyze_function): Don't call lower_function.
7226         * langhooks.h (struct lang_hooks_for_callgraph): Replace
7227         lower_function with analyze_expr.
7228         * langhooks-def.h: Update to match.
7229         * langhooks.c (lhd_callgraph_analyze_expr): New.
7230
7231 2003-09-10  Martin Husemann  <martin@duskware.de>
7232
7233         PR target/11965
7234         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
7235         constants greater than 63.
7236         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
7237         against constants greater than 31.
7238         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
7239         constants greater than 63.
7240
7241 2003-09-09  Richard Henderson  <rth@redhat.com>
7242
7243         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
7244         * cgraph.h (cgraph_finalize_function): Update.
7245         * c-decl.c (finish_function): Update.
7246
7247 2003-09-09  Devang Patel  <dpatel@apple.com>
7248
7249         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
7250         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
7251
7252 2003-09-09  Eric Christopher  <echristo@redhat.com>
7253
7254         * configure.in: Change usage of 'head' to 'sed 1q'.
7255         * configure: Regenerate.
7256
7257 2003-09-09  Richard Henderson  <rth@redhat.com>
7258
7259         * except.c: Include cgraph.h.
7260         (output_function_exception_table): Invoke
7261         cgraph_varpool_mark_needed_node.
7262         * Makefile.in (except.o): Update.
7263
7264 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
7265
7266         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
7267         and use it throughout.
7268
7269 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7270
7271         * builtins.c (real_dconstp, fold_builtin_logarithm,
7272         fold_builtin_exponent): New, split out from fold_builtin.  Also
7273         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
7274         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
7275         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
7276         of hardcoded array size.
7277         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
7278         (tree_expr_nonnegative_p): Likewise.
7279         * real.h (dconst3, dconst10, dconstthird): New.
7280
7281 2003-09-09  Jan Hubicka  <jh@suse.cz>
7282
7283         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
7284         inline functions.
7285         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
7286         DECL_SAVED_TREE.
7287
7288 2003-09-09  Roger Sayle  <roger@eyesopen.com>
7289
7290         * builtins.c (fold_builtin_cabs): Protect the complex argument
7291         against multiple evaluation when optimizing cabs* into sqrt*.
7292
7293 2003-09-09  Jan Hubicka  <jh@suse.cz>
7294
7295         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
7296
7297 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
7298
7299         * Makefile.in: Revert yesterday's change.
7300
7301 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
7302             Peter Barada <peter@baradas.org>
7303
7304         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
7305         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
7306         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
7307         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
7308         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
7309         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
7310         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
7311         (m68k_compute_frame_layout): New function.
7312         (m68k_initial_elimination_offset): New function.
7313         (m68k_output_function_prologue): ColdFire-specific movem handling.
7314         (m68k_output_function_epilogue): Likewise.
7315         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
7316         (ARG_POINTER_REGNUM): Add new definition.
7317         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
7318         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
7319         (CAN_ELIMINATE): Likewise.
7320         (INITIAL_ELIMINATION_OFFSET): Likewise.
7321
7322 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
7323
7324         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
7325         by removing redundant variable cfa_store_offset.
7326
7327 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
7328
7329         * langhooks-def.h (lhd_register_builtin_type): New function.
7330         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
7331         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
7332         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
7333         * langhooks.c (lhd_register_builtin_type): New function.
7334         * c-common.h (c_register_builtin_type): Declare.
7335         * c-common.c (c_register_builtin_type): New function.
7336         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
7337         c_register_builtin_type.
7338         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
7339         __float80, and __float128 macros.
7340         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
7341         __float80, and __float128 types.
7342
7343 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7344
7345         * builtin-types.def
7346         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
7347         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
7348         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
7349         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
7350         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
7351         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
7352         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
7353         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
7354         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
7355         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
7356         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
7357         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
7358         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
7359         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
7360         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
7361         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
7362         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
7363         New.
7364         * doc/extend.texi: Document new builtins.
7365
7366 2003-09-09  Jan Hubicka  <jh@suse.cz>
7367
7368         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
7369         finalization.
7370         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
7371         functions, check for COMDAT.
7372         (cgraph_assemble_pending_functions): Break out from...
7373         (cgraph_finalize_function): ... here; allow redefinig of extern inline
7374         functions.
7375         (record_call_1): Record function references only in non-unit-at-a-time
7376         mode.
7377         (cgraph_analyze_function): Reset current_function_decl.
7378         (cgraph_finalize_compilation_unit):  Assemble pending functions.
7379
7380 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
7381
7382         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
7383         (libgov.a): Likewise.
7384         (libgcc_eh.a): Likewise.
7385
7386 2003-09-08  Roger Sayle  <roger@eyesopen.com>
7387
7388         * fold-const.c (operand_equal_p): Clarify documentation.
7389
7390 2003-09-08  Richard Henderson  <rth@redhat.com>
7391
7392         * c-decl.c (c_expand_body_1): Push and pop function context here.
7393         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
7394         nested argument instead of computing nesting ourselves.
7395
7396 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
7397
7398         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
7399         regstack if optimizing but not scheduling after reload.
7400
7401 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
7402
7403         * config/sparc/sparc.c (struct machine_function): New type.
7404         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7405         (sparc_override_options): Initialize init_machine_status.
7406         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
7407         tie_symbolic_operand, tle_symbolic_operand): New functions.
7408         (symbolic_operand): Disallow tls_symbolic_operand.
7409         (symbolic_memory_operand): Likewise.
7410         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
7411         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
7412         New functions.
7413         (sparc_tls_symbol): New variable.
7414         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
7415         legitimize_address): New functions.
7416         (print_operand): Handle %&.
7417         (sparc_init_machine_status, get_some_local_dynamic_name,
7418         get_some_local_dynamic_name_1): New functions.
7419         (sparc_output_dwarf_dtprel): New function.
7420         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
7421         constant_address_p.
7422         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
7423         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
7424         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
7425         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
7426         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7427         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
7428         (ASM_OUTPUT_DWARF_DTPREL): Define.
7429         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
7430         tie_symbolic_operand, tle_symbolic_operand.
7431         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
7432         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
7433         (tls_call_delay): New attribute.
7434         (in_call_delay): Use it.
7435         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
7436         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
7437         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
7438         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
7439         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
7440         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
7441         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
7442         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
7443         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
7444         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
7445         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
7446         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
7447         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
7448         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
7449         insns.
7450         * config/sparc/sparc-protos.h (legitimate_constant_p,
7451         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
7452         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
7453         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
7454         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7455         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
7456         * configure.in (sparc*-*-*): Add TLS check.
7457         * configure: Rebuilt.
7458
7459 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7460
7461         PR target/11689
7462         * config/i386/i386.c (memory_address_length): Fix computation when
7463         the base is esp or ebp.
7464
7465 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
7466
7467         PR c++/11852
7468         * varasm.c (initializer_constant_valid_p): Correct logic for
7469         CONSTRUCTORs.
7470
7471 2003-09-07  Roger Sayle  <roger@eyesopen.com>
7472
7473         * expr.c (expand_operands): New function to expand an operand pair.
7474         (expand_expr): Call expand_operands whenever we need to expand both
7475         operands of a binary operator.
7476         (do_store_flag): Likewise for operands of comparison operations.
7477
7478 2003-09-07  Roger Sayle  <roger@eyesopen.com>
7479
7480         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
7481         (-A)*B if we care about sign-dependent rounding.
7482
7483 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
7484
7485         * c-pretty-print.h (pp_c_left_brace): Declare.
7486         (pp_c_right_brace): Likewise.
7487         * c-pretty-print.c (pp_c_left_brace): Now a function
7488         (pp_c_right_brace): Likewise.
7489
7490 2003-09-07  Jan Hubicka  <jh@suse.cz>
7491
7492         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
7493
7494 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7495
7496         * diagnostic.c (warn_deprecated_use): Move to toplev.c
7497
7498 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7499
7500         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
7501         * Makefile.in (langhooks.o): Depend on diagnostic.h
7502
7503 2003-09-06  James E Wilson  <wilson@tuliptree.org>
7504
7505         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
7506         simplify.
7507
7508 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
7509
7510         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
7511         and use it throughout.
7512
7513 2003-09-07  Jan Hubicka  <jh@suse.cz>
7514
7515         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
7516
7517         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
7518         virables.
7519
7520         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
7521         functions.
7522         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
7523
7524 2003-09-06  Jan Hubicka  <jh@suse.cz>
7525
7526         PR target/12070
7527         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
7528
7529         PR opt/12082
7530         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
7531
7532 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7533
7534         * diagnostic.c (announce_function): Move to toplev.c.
7535
7536 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7537
7538         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
7539         volatile mem.
7540
7541 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7542
7543         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
7544         when gc checking is enabled.
7545
7546 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
7547
7548         PR c/9862
7549         * c-decl.c (c_expand_body_1): Move return warning from here...
7550         (finish_function): ...to here.
7551
7552 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
7553
7554         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
7555         a subset of the input class.
7556
7557 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
7558
7559         * config/i860/i860.c: Follow spelling conventions.
7560         * config/i860/i860.h: Likewise.
7561         * config/sh/sh.h: Likewise.
7562
7563 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
7564
7565         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
7566         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
7567         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
7568
7569 2003-09-05  Roger Sayle  <roger@eyesopen.com>
7570             Richard Henderson  <rth@redhat.com>
7571
7572         PR optimization/1823
7573         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
7574         multiplication to implement division by constant integer.
7575
7576 2003-09-05  Jan Hubicka  <jh@suse.cz>
7577
7578         * opts.c (decode_options): Enable unit-at-a-time at -O2.
7579         * params.def (max-inline-insns-single): Set to 500
7580         (max-inline-insns-auto): Set to 150
7581         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
7582
7583 2003-09-04  Richard Henderson  <rth@redhat.com>
7584
7585         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
7586         (cgraph_mark_needed_node): Remove needed argument.
7587         * cgraph.h: Update to match.
7588         * cgraphunit.c (decide_is_function_needed): Split out from ...
7589         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
7590         if we generated the function.
7591         (record_call_1): Update for cgraph_mark_reachable_node.
7592         * varasm.c (mark_referenced): Likewise.
7593         * objc/objc-act.c (mark_referenced_methods): Likewise.
7594
7595 2003-09-04  DJ Delorie  <dj@redhat.com>
7596
7597         * targhooks.c: Add comment explaining the migration process.
7598
7599 2003-09-04  Eric Christopher  <echristo@redhat.com>
7600
7601         * config/frv/t-frv: Fix path for frv-abi.h.
7602         * config/frv/frv-asm.h: Fix string concatenation.
7603
7604 2003-09-04  DJ Delorie  <dj@redhat.com>
7605
7606         * builtins.c (apply_args_size): Guard against a NULL cfun.
7607         (expand_builtin_apply_args_1): Likewise.
7608         (expand_builtin_apply): Likewise.
7609         Fixes PR bootstrap/12172.
7610
7611 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7612
7613         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
7614         assembler supports Sun syntax for cmov.
7615         * configure: Regenerate.
7616         * config.in: Likewise.
7617         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
7618         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
7619         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
7620         Fixes PR target/12101.
7621
7622 2003-09-04  Matt Austern  <austern@apple.com>
7623
7624         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
7625         with verbosity 0, instead of DECL_NAME, for human-readable string.
7626
7627 2003-09-04  Eric Christopher  <echristo@redhat.com>
7628
7629         * targhooks.c (default_return_in_memory): Allow
7630         unconverted ports.
7631
7632 2003-09-04  Eric Christopher  <echristo@redhat.com>
7633
7634         * targhooks.c (default_return_in_memory): Fix typo
7635         in last checkin.
7636
7637 2003-09-04  Eric Christopher  <echristo@redhat.com>
7638
7639         * targhooks.c (default_return_in_memory): Fix default
7640         definition.
7641
7642 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
7643
7644         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
7645         deleted function.
7646         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
7647         enable coff-only code in m68k.c.
7648
7649 2003-09-04  Nick Clifton  <nickc@redhat.com>
7650
7651         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
7652         v850e1.
7653         * config/v850/v850.h: Accept v850e1 as a default CPU.
7654         Accept -mv850e1 as a command line option.
7655         * doc/invoke.texi: Document new -mv850e1 command line switch.
7656         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
7657         -mv850e.
7658
7659 2003-09-04  Nick Clifton  <nickc@redhat.com>
7660
7661         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
7662         * config/v850/t-v850: Only produce one extra multilib - for
7663         the v850e.
7664         * config/v850/t-v850e: New file: Only produce one extra
7665         multilib - for the v850.
7666
7667 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
7668
7669         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
7670         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
7671         * unwind.h (_Unwind_GetBSP): New prototype.
7672         * libgcc-std.ver: Add empty GCC_3.3.2 version.
7673         * mkmap-symver.awk: For symbol versions with no exported symbols,
7674         don't put anything into version script, just change all symbol
7675         versions which inherit from it to inherit from its ancestor.
7676
7677 2003-09-04  Eric Christopher  <echristo@redhat.com>
7678
7679         * config/mips/mips.c (mips_expand_prologue): Convert to
7680         calls.struct_value_rtx hook.
7681         (reg_or_const_float_1_operand): New.
7682         * config/mips/mips.h: Update Comments.
7683         (mips_arg): Add reg_or_const_float_1_operand.
7684         * config/mips/mips.md (divdf3); Convert to expander.
7685         (divsf3): Ditto.
7686         (*divdf3): New pattern.
7687         (*divsf3): Ditto.
7688
7689 2003-09-04  Jan Hubicka  <jh@suse.cz>
7690
7691         * toplev.c (wrapup_global_declarations): Fix final pass in
7692         unit-at-atime mode.
7693
7694 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
7695
7696         * doc/extend.texi: Document removal of cast-as-lvalue extension in
7697         C++.
7698
7699 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
7700
7701         * gcc.c (process_command): Fix typo.
7702
7703 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
7704
7705         optimization/11980
7706         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
7707         (PTRDIFF_TYPE): Likewise.
7708         (WCHAR_TYPE_SIZE): Likewise.
7709
7710 2003-09-03  DJ Delorie  <dj@redhat.com>
7711
7712         * targhooks.c: New file.
7713         * targhooks.h: New file.
7714         * Makefile.in: Add targhooks.o support.
7715         (function.o): Depend on$(TARGET_H).
7716         (stmt.o): Likewise.
7717         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
7718         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
7719         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
7720         (expand_builtin_saveregs): Convert to
7721         calls.expand_builtin_saveregs hook.
7722         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
7723         here, instead of ...
7724         (get_parm_info) ... here.
7725         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
7726         hook.
7727         (finish_function): Handle calls.promote_prototypes hook here too.
7728         * c-typeck.c (convert_arguments): Convert to
7729         calls.promote_prototypes hook.
7730         (c_convert_parm_for_inlining): Likewise.
7731         * calls.c (initialize_argument_information): Convert to
7732         calls.promote_function_args hook.
7733         (expand_call): Convert to calls.struct_value_rtx,
7734         calls.strict_argument_naming,
7735         calls.pretend_outgoing_varargs_named, and
7736         calls.promote_function_return hooks.  Pass fndecl to
7737         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
7738         hooks, so they can use that.
7739         (emit_library_call_value_1): Likewise.
7740         * combine.c (setup_incoming_promotions): Convert to
7741         calls.promote_function_args hook.
7742         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
7743         * expr.c (expand_assignment): Pass call to aggregate_value_p.
7744         (expand_expr): Likewise.
7745         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
7746         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
7747         RETURN_IN_MEMORY macro defaults.
7748         * final.c (profile_function): Convert to calls.struct_value_rtx
7749         hook.
7750         * function.c (aggregate_value_p): Accept function type tree as
7751         second parameter; try to deduce fntype from it.  Convert to
7752         calls.return_in_memory hook.
7753         (assign_parms): Convert to calls.setup_incoming_varargs,
7754         calls.strict_argument_naming, calls.promote_function_args,
7755         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
7756         aggregate_value_p.
7757         (expand_function_start): Likewise.  Convert to
7758         calls.struct_value_rtx hook.
7759         (expand_function_end): Convert to calls.promote_function_return hook.
7760         (allocate_struct_function): Pass fndecl to aggregate_value_p.
7761         * hard-reg-set.h: Update comments to new hook names.
7762         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
7763         * reg-stack.c (stack_result): Likewise.
7764         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
7765         * stmt.c (expand_value_return): Convert to
7766         calls.promote_function_return hook.
7767         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
7768         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7769         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
7770         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
7771         TARGET_STRICT_ARGUMENT_NAMING,
7772         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
7773         * target.h: Likewise.
7774         * tree.h (aggregate_value_p): Also takes a tree to deduce function
7775         attributes from (for target hooks).
7776         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
7777         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
7778         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
7779         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
7780         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
7781         to hooks.
7782
7783         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
7784         to aggregate_value_p.
7785         * config/arm/arm.c (arm_init_cumulative_args,
7786         arm_output_mi_thunk): Likewise.
7787         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
7788         Likewise.
7789         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
7790         mips_can_use_return_insn): Likewise.
7791         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7792         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7793         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
7794         aggregate_value_p.
7795         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
7796         function to aggregate_value_p.
7797         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
7798         aggregate_value_p.
7799
7800         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
7801         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
7802         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
7803         (sh_handle_renesas_attribute, sh_promote_prototypes,
7804         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
7805         sh_setup_incoming_varargs, sh_strict_argument_naming,
7806         sh_pretend_outgoing_varargs_named): New decls.
7807         (targetm): Add new hooks.
7808         (calc_live_regs): Save MACL and MACH if the function has the
7809         renesas attribute.
7810         (sh_expand_prologue): Support renesas attribute.
7811         (sh_builtin_saveregs): Make static.
7812         (sh_build_va_list): Support renesas attribute.
7813         (sh_va_start): Likewise.
7814         (sh_va_arg): Likewise.
7815         (sh_promote_prototypes): New.
7816         (sh_function_arg): New, moved from sh.h.  Support renesas
7817         attribute.
7818         (sh_function_arg_advance): Likewise.
7819         (sh_return_in_memory): Likewise.
7820         (sh_strict_argument_naming): Likewise.
7821         (sh_pretend_outgoing_varargs_named): Likewise.
7822         (sh_struct_value_rtx): New.
7823         (sh_attribute): Add renesas attribute.
7824         (sh_handle_renesas_attribute): New.
7825         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
7826         (sh_ms_bitfield_layout_p): Support renesas attribute also.
7827         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
7828         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
7829         -mhitachi.
7830         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
7831         target hooks.
7832         (sh_args): Add renesas_abi flag.
7833         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
7834         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
7835         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
7836         stack for the renesas abi.
7837         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
7838         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
7839         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
7840         call cookie to indicate renesas calls.
7841
7842 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
7843
7844         * gcse.c (replace_one_set): New function.
7845         (pre_insert_copy_insn): Change the order of copying
7846         to make copy propagation discover additional PRE opportunities.
7847
7848 2003-09-03  Roger Sayle  <roger@eyesopen.com>
7849
7850         PR optimization/11700.
7851         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
7852         of a hard register is representable before trying to simplify it
7853         using subreg_hard_regno.
7854
7855 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7856
7857         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
7858         * configure: Regenerate.
7859
7860 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7861
7862         * intl.h (N_): Remove parentheses.
7863
7864 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
7865
7866         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
7867         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
7868         definition and code blocks compiled when not defined.
7869         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
7870         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
7871         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
7872         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
7873
7874 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
7875
7876         * cgraphunit.c (visited_nodes): New static variable.
7877         (record_call_1): Use walk_tree with visited_nodes.
7878         (cgraph_create_edges): Use walk_tree with visited_nodes.
7879         Setup/teardown visited_nodes hashtable.
7880
7881 2003-09-03  Roger Sayle  <roger@eyesopen.com>
7882
7883         * toplev.c (flag_rounding_math): New global variable.
7884         (f_options): Add to the list of language independent options.
7885         * flags.h (flag_rounding_math): Prototype here.
7886         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
7887         * common.opt (frounding-math): New common command line option.
7888         * opts.c (common_handle_option): Handle OPT_frounding_math.
7889         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
7890
7891         * doc/invoke.texi: Document this new command line option.
7892
7893 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7894
7895         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
7896
7897 2003-09-03  Jan Hubicka  <jh@suse.cz>
7898
7899         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
7900         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
7901         * c-objc-common.c: Kill include of gt-c-objc-common.h
7902         (expand_deferred_fns, deffer_fn): Kill function.
7903         (deferred_fns): Kill variable.
7904         (finish_cdtor): Update finish_function call.
7905         (c_objc_common_finish_file): Always call cgraph code.
7906         * c-parse.c: Regenerate.
7907         * c-parse.y: Regenerate.
7908         * c-tree.h (finish_function): Update prototype.
7909         * objc-acct.c (build_module_descriptor, finish_method_def):
7910         Update call of finish_function.
7911         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
7912         forward prototype.
7913         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
7914         function and assemble it if needed.
7915         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
7916         mode.
7917         (cgraph_optimize): Likewise.
7918         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
7919         even when it has no inline callees.
7920         * c-parse.in: Update calls to finish_function.
7921
7922 2003-09-03  Nick Clifton  <nickc@redhat.com>
7923
7924         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
7925         Use #error to generate the message if TARGET_DEFAULT is not
7926         recognised.
7927
7928 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
7929
7930         * config/mips/mips.h (MASK_UNUSED1): Remove.
7931         (MASK_XGOT, TARGET_XGOT): Define.
7932         (TARGET_SWITCHES): Add an entry for -mxgot.
7933         (ASM_SPEC): Map -mxgot to -xgot.
7934         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
7935         whether we're using a big-GOT sequences.
7936         (mips_legitimize_const_move, mips_expand_call): Likewise.
7937         (override_options): Revert 2003-01-09 change.
7938         * doc/invoke.texi: Document -mxgot.
7939
7940 2003-09-02  Jason Merrill  <jason@redhat.com>
7941
7942         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
7943         * config/sparc/sol2.h: Not here.
7944
7945 2003-09-02  Roger Sayle  <roger@eyesopen.com>
7946
7947         * expr.c (expand_expr): The code following both_summands performs
7948         the same task as simplify_gen_binary.  Replace all gotos to
7949         both_summands with a call to simplify_gen_binary and delete the
7950         now unused label.
7951
7952 2003-09-02  Jason Merrill  <jason@redhat.com>
7953
7954         PR c++/7327
7955         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
7956
7957 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
7958
7959         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
7960         (cgraph_optimize_function): Set current_function_decl to the
7961         fndecl we're integrating from.
7962
7963 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7964
7965         * builtins.def: Break out _Complex math functions into their
7966         own category.
7967
7968 2003-09-02  Andreas Jaeger  <aj@suse.de>
7969
7970         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
7971
7972 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
7973
7974         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
7975         finding the note again.
7976
7977 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
7978
7979         * config.gcc: Remove host-specific rewrites of target_alias.
7980
7981 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
7982
7983         * Makefile.in (genprogs): Fix typo.
7984
7985         * Makefile.in (gencheck.o): Remove build commands.
7986         (dummy-conditions.o): Likewise.
7987         (read-rtl.o): Likewise.
7988         (gensupport.o): Likewise.
7989         (genconfig$(build_exeext)): Remove rule.
7990         (genconfig.o): Remove build commands.
7991         (genflags$(build_exeext)): Remove rule.
7992         (genflags.o): Remove build commands.
7993         (gencodes$(build_exeext)): Remove rule.
7994         (gencodes.o): Remove build commands.
7995         (genconstants.o): Remove build commands.
7996         (genemit$(build_exeext)): Remove rule.
7997         (genemit.o): Remove build commands.
7998         (genrecog$(build_exeext)): Remove rule.
7999         (genrecog.o): Remove build commands.
8000         (genextract$(build_exeext)): Remove rule.
8001         (genextract.o): Remove build commands.
8002         (genpeep$(build_exeext)): Remove rule.
8003         (genpeep.o): Remove build commands.
8004         (genattr$(build_exeext)): Remove rule.
8005         (genattr.o): Remove build commands.
8006         (genprognames): New variable.
8007         (genprogs): Likewise.
8008         (genobjs): Likewise.
8009         (genprogs): New rule.
8010         (genobjs): Likewise.
8011         (genattrtab.o): Remove build commands.
8012         (genautomata.o): Likewise.
8013         (genoutput$(build_exeext)): Remove rule.
8014         (genoutput.o): Remove build commands.
8015         (gengenrtl.o): Likewise.
8016         (genpreds.o): Likewise.
8017         (gengtype.o): Likewise.
8018         (genconditions.o): Likewise.
8019         (gen-protos.o): Likewise.
8020         (scan.o): Likewise.
8021         (fix-header.o): Likewise.
8022         (scan-decls.o): Likewise.
8023         (check-g++): Combine with other check targets.
8024         (check-gcc): Likewise.
8025         (check-g77): Likewise.
8026         (check-objc): Likewise.
8027
8028 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8029
8030         * config.gcc: Remove host-specific stuff which is unused here
8031         since the introduction of config.host.
8032
8033         * doc/fragments.texi: Mention config.host.
8034         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
8035         of config.build, config.host, and config.gcc.
8036
8037 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
8038
8039         * c-decl.c (pushdecl): Don't put variables on
8040         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
8041         incomplete.
8042
8043 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8044
8045         * config.host: New file.
8046         * config.gcc: Remove some host-specific stuff and some
8047         logic needed only for repeated invocation.
8048         * configure.in: Use config.host.
8049         * configure: Regenerate.
8050
8051 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
8052
8053         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
8054         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
8055         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
8056         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
8057         * tree.def (BIT_ANDTC_EXPR): Kill.
8058
8059 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
8060
8061         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
8062         * configure: Regenerate.
8063
8064         * config.gcc:  Remove references to install_headers_dir, now unused
8065         since introduction of config.build.
8066         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
8067
8068         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
8069         config.build.
8070
8071         * config.build: New file.
8072         * config.gcc: Remove some build-specific stuff.
8073         * configure.in: Use config.build.
8074         * configure: Regnerate.
8075
8076 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
8077             Roger Sayle  <roger@eyesopen.com>
8078
8079         PR middle-end/11823
8080         * stmt.c (expand_end_case_type): Only use jump tables for dense
8081         switch statements when optimizing for size.
8082
8083 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
8084
8085         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
8086         the != 0 case, which ensures pending stack adjustments are flushed.
8087
8088 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
8089
8090         * configure.frag: Delete file.
8091         * configure.in: Rename the substitution variables
8092         dep_host_xmake_file and dep_tmake_file to xmake_file and
8093         tmake_file respectively.  Do not expand $srcdir in the
8094         value of these; leave that for Make.  Introduce a new
8095         substitution varaible, all_lang_makefrags, which lists
8096         subdirectory Make-lang.in files; exclude these from
8097         all_lang_makefiles, which is now only for subdirectory
8098         outputs.  Do not invoke configure.frag.  Do not set nor
8099         AC_SUBST_FILE target_overrides, host_overrides, or
8100         language_fragments. Create build subdirectories in
8101         config.status extra commands.
8102         * configure: Regenerate.
8103         * Makefile.in: Update substitutions to match changes to
8104         configure.  Use include directives instead of @-insertions
8105         to read in host, target, and language fragments.
8106         (Makefile rule): Do not invoke configure.frag.  Do not copy
8107         config.status to config.run before executing it.  Set
8108         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
8109         regenerated.
8110         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
8111
8112 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
8113
8114         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
8115         * c-typeck.c (same_translation_unit_p): New function.
8116         (comptypes): Use it instead of flags parameter to identify
8117         structure types from different translation units.
8118         * c-decl.c (duplicate_decls): Always call comptypes with
8119         COMPTYPE_STRICT flags argument.
8120         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
8121         to file_scope_decl.
8122
8123 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
8124
8125         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
8126         * c-decl.c (struct c_scope): Remove "incomplete" field.
8127         (pushdecl): Attach variables with incomplete types to
8128         the TYPE_MAIN_VARIANT of the incomplete type in question.
8129         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
8130         to complete, not at current_scope->incomplete.  All such
8131         variables do need completion.
8132
8133 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
8134         Nicolas Pitre <nico@cam.org>
8135
8136         * arm/lib1funcs.asm (RETCOND): Delete.
8137         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
8138         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
8139         (__ARM_ARCH__): Move here from ieee754-?f.S.
8140         (RET, RETc): Clean up definitions.
8141         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
8142         (FUNC_END): New macro that marks the end of any function.
8143         (ARM_FUNC_START): New macro that allows an assembler routine to be
8144         implemented in ARM code even if a Thumb-only build.
8145         Unconditionally include ieee754-?f.S.
8146         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
8147         Mark ends of functions.
8148         Split into separate conditionally-compiled units.
8149         Use RETLDM to return from routines.
8150         * arm/ieee754-sf.S: Similarly.
8151         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
8152         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
8153         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
8154         _fixsfsi and _fixunssfsi.
8155
8156         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
8157         multiplication underflows to zero.
8158         (__adddf3): Fix bug when using VFP ordering on little-endian
8159         processors.
8160         (__fixdfsi): Use rrx to extract the carry into a register instead of
8161         MRS instruction.  Optimize later use of result.
8162         * arm/ieee754-sf.S (__fixsfsi): Likewise.
8163         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
8164
8165 2003-08-29  Richard Henderson  <rth@redhat.com>
8166
8167         * tree-optimize.c: New file.
8168         * Makefile.in (OBJS-archive): Add tree-optimize.o.
8169         (tree-optimize.o): New.
8170         * c-decl.c (store_parm_decls): Use allocate_struct_function.
8171         (finish_function): Don't free_after_parsing or free_after_compilation.
8172         (set_save_expr_context): Move to tree-optimize.c.
8173         (c_expand_body_1): Use tree_rest_of_compilation.
8174         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8175         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8176         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
8177         iterate until closure.
8178         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
8179         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
8180         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
8181         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
8182         * toplev.h (tree_rest_of_compilation): Declare it.
8183
8184 2003-08-29  Richard Henderson  <rth@redhat.com>
8185
8186         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
8187         * integrate.c (save_for_inline): Set saved_for_inline.
8188         * c-semantics.c (genrtl_scope_stmt): Check it.
8189         * toplev.c (wrapup_global_declarations): Check it.
8190         (rest_of_handle_inlining): Set and check rtl_inline_init.
8191         (rest_of_compilation): Remove out of date comment.
8192
8193 2003-08-29  Richard Henderson  <rth@redhat.com>
8194
8195         * function.c (allocate_struct_function): New, split out of ...
8196         (prepare_function_start, init_function_start): ... here.
8197         * expr.c (init_expr): Use ggc_alloc_cleared.
8198         * stmt.c (init_stmt_for_function): Likewise.
8199         * tree.h (allocate_struct_function): Declare.
8200
8201 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8202
8203         * config.gcc: Don't use negated character class in shell case
8204         clause.
8205
8206 2003-08-29  Richard Henderson  <rth@redhat.com>
8207
8208         * function.h (struct function): Move function_frequency and
8209         max_jumptable_ents before start of bit field members.
8210
8211 2003-08-29  Richard Henderson  <rth@redhat.com>
8212
8213         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
8214         (fold_builtin_constant_p) ... not here.
8215
8216 2003-08-29  Richard Henderson  <rth@redhat.com>
8217
8218         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
8219         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
8220         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
8221
8222 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8223
8224         * builtins.def: Fix typos.
8225         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
8226         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
8227         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
8228         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
8229         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
8230
8231         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
8232         Use ATTR_MATHFN_FPROUNDING_ERRNO.
8233
8234 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8235
8236         * config.gcc (i386-*-vsta): Fix obvious bogosity.
8237
8238         * fixinc/inclhack.def:  Remove special cases for unsupported
8239         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
8240         * fixinc/fixincl.x: Regenerate.
8241
8242 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
8243
8244         * Makefile.in (cpp.info): Just state dependencies.
8245         (gcc.info): Likewise.
8246         (gccint.info): Likewise.
8247         (gccinstall.info): Likewise.
8248         (cppinternals.info): Likewise.
8249         (cpp.dvi): Likewise.
8250         (gcc.dvi): Likewise.
8251         (gccint.dvi): Likewise.
8252         (gccinstall.dvi): Likewise.
8253         (cppinternals.dvi): Likewise.
8254         (gcov.1): Likewise.
8255         (cpp.1): Likewise.
8256         (gcc.1): Likewise.
8257         (gfdl.7): Likewise.
8258         (gpl.7): Likewise.
8259         (fsf-funding.7): Likewise.
8260         ($(objdir)/%.info): New pattern rule.
8261         (%.dvi): Likewise.
8262
8263 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
8264
8265         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
8266         (restage2): Likewise.
8267         (restage3): Likewise.
8268         (restage4): Likewise.
8269         (restageprofile): Likewise.
8270         (restagefeedback): Likewise.
8271         (bubblestrap): Likewise.
8272
8273 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8274
8275         * config.gcc: Narrow unsupported target match to avoid clobbering
8276         i?86-sequent-sysv4*.
8277
8278 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8279
8280         * builtins.c (mathfn_built_in): Handle new math builtins.
8281
8282 2003-08-28  Per Bothner  <per@bothner.com>
8283
8284         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
8285         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
8286         (_cpp_lex_buffer):  Likewise.
8287         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
8288
8289 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
8290
8291         * config/s390/s390.md ("*mulsi3_sign"): New insn.
8292         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
8293         ("mulsidi3"): ... this new insn.
8294         ("umulsidi3"): New insn.
8295         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
8296         mixed-mode matching constraints.
8297         ("udivmodsi4", "udivmoddisi3"): New insns.
8298         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
8299
8300 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8301
8302         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
8303         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
8304         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
8305         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
8306         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
8307         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
8308         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
8309         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
8310         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
8311         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
8312         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
8313         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
8314         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
8315         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
8316         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
8317         * tree.c: Assign new type_nodes.
8318         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
8319         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
8320         (float_ptr_type_node, double_ptr_type_node,
8321         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
8322
8323         * doc/extend.texi: Document new builtins.
8324
8325 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8326
8327         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
8328         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
8329
8330         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
8331         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
8332         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
8333         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
8334         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
8335         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
8336         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
8337         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
8338         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
8339         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
8340
8341         * doc/extend.texi: Document new builtins.
8342
8343 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
8344
8345         * fixinc/mkfixinc.sh: Remove special case code for unsupported
8346         variants of i?86, powerpcle, and thumb.
8347         * fixinc/mkfixinc.sh: Remove special case code for unsupported
8348         arm and hppa variants.
8349
8350 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8351
8352         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
8353         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
8354         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
8355         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
8356         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
8357         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
8358         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
8359         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
8360         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
8361         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
8362
8363         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
8364         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
8365         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
8366         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
8367         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
8368         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
8369         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
8370         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
8371         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
8372         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
8373         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
8374         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
8375         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
8376         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
8377         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
8378         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
8379         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
8380         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
8381         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
8382         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
8383         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
8384         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
8385         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
8386         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
8387         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
8388         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
8389         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
8390         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
8391         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
8392         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
8393         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
8394
8395         * doc/extend.texi: Document new builtins.
8396
8397 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
8398
8399         * config/s390/s390.c (legitmate_constant_p): Use LARL on
8400         zSeries machines even in 31-bit addressing mode.
8401         (legitimate_reload_constant_p): Likewise.
8402         (legitimize_pic_address): Likewise.
8403         (legitimize_tls_address): Likewise.
8404         (s390_split_branches): Likewise.
8405         (s390_dump_pool): Likewise.
8406         (s390_mainpool_finish): Likewise.
8407         (s390_chunkify_start): Likewise.
8408         (s390_select_rtx_section): Likewise.
8409         * config/s390/s390.md ("doloop_si"): Likewise.
8410         ("pool_start_31", "pool_end_31"): Likewise.
8411         ("pool_start_64", "pool_end_64"): Likewise.
8412         ("main_base_31_small", "main_base_31_large"): Likewise.
8413         ("main_base_64"): Likewise.
8414         ("reload_base_31", "reload_base_64"): Likewise.
8415         ("*movsi_larl"): New insn.
8416         ("cjump", "icjump"): Use long branches on zSeries machines.
8417         ("jump"): Likewise.
8418         ("call"): Use BRASL on zSeries machines.
8419         ("call_value", "call_value_tls"): Likewise.
8420         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
8421         and replace by ...
8422         ("*bras", "*brasl", "*basr") ... these new insns.
8423         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
8424         "bas_31_r"): Remove and replace by ...
8425         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
8426         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
8427         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
8428         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
8429         ("*return_si", "*return_di"): Remove and replace by ...
8430         ("*return"): ... this new insn.
8431         ("rotlsi3"): Allow on zSeries machines.
8432
8433         * config/s390/s390.c (legitimize_reload_constant_p): Use
8434         LL/LH type instructions in z/Architecture mode.
8435         * config/s390/s390.md ("*movsi_lli"): Likewise.
8436         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
8437         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
8438         ("*extendqisi2"): Use LB in z/Architecture mode.
8439         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
8440         z/Architecture mode.
8441         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
8442         Likewise.
8443
8444         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
8445         and 31-bit mode.
8446         ("ptr_extend"): Allow only in 64-bit mode.
8447
8448 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
8449
8450         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
8451         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
8452         definitions.
8453         (main): Only use standard_startfile_prefix if native.
8454         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
8455
8456 2003-08-27  Per Bothner  <pbothner@apple.com>
8457
8458         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
8459         test fails following my 08-21 change, and it seems unnecessary anyway.
8460         (cpp_error):  Likewise.
8461
8462 2003-08-27  Jason Merrill  <jason@redhat.com>
8463
8464         * real.c (do_multiply): Initialize with memset.
8465
8466 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8467
8468         * gcov.c (typedef struct arc_info): New field cs_count.
8469         (accumulate_line_counts): Find cycles correctly.
8470
8471 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
8472
8473         * config/s390/s390.c (struct machine_function): Remove member
8474         literal_pool_label.
8475         (s390_optimize_prolog): Replace TEMP_REG argument with
8476         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
8477         (general_s_operand): Accept all immediates before reload if
8478         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
8479         references.
8480         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
8481         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
8482         (s390_alloc_pool): New function.
8483         (s390_new_pool): Call it.
8484         (s390_dump_pool): Add REMOTE_LABEL argument.
8485         (s390_chunkify_start): Add BASE_REG argument.  Do not check
8486         get_pool_size ().
8487         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
8488         s390_dump_pool call.
8489         (s390_pool_count, s390_nr_constants): Remove.
8490         (s390_output_constant_pool): Remove.
8491         (s390_mainpool_start): New function.
8492         (s390_mainpool_finish): New function.
8493         (s390_mainpool_cancel): New function.
8494         (s390_reorg): Implement main literal pool handling.
8495         (s390_emit_prologue): Emit main_pool placeholder instead of
8496         literal_pool_31 / literal_pool_64 insns.
8497         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
8498         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
8499         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
8500         ("main_base_31_small", "main_base_31_large"): New insns.
8501         ("main_base_64",  "main_pool"): New insns.
8502         ("literal_pool_31", "literal_pool_64"): Remove.
8503
8504 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
8505
8506         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
8507         fixinc.ptx.
8508         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
8509         Prettify a little.
8510         * fixinc/fixincl.x: Regenerate.
8511
8512 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
8513
8514         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
8515         (L_ieee754_dp): New.  Include ieee754-df.S.
8516         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
8517         and compilation in apcs-26 mode.
8518         * arm/ieee754-df.S: Likewise.
8519         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
8520         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
8521
8522 2003-08-27  Nicolas Pitre  <nico@cam.org>
8523
8524         * arm/ieee754-sf.S: New.
8525         * arm/ieee754-df.S: New.
8526
8527 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
8528
8529         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
8530         and restore it if returning NULL.
8531
8532 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
8533
8534         * calls.c (initialize_argument_information): If an argument has no
8535         stack space associated with it, and BLOCK_REG_PADDING is defined,
8536         use it to decide at which end the argument should be padded.
8537         * function.c (assign_parms): Allocate BLKmode stack slots.
8538         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
8539         (mips_pad_reg_upward): Declare.
8540         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
8541         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
8542         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
8543         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
8544         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
8545         (mips_expand_call): Remove code for generating structure shifts.
8546         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
8547         types unless using the EABI.
8548         (function_arg_advance): Don't generate shift instructions.
8549         (function_arg): Don't return them.  Don't short-circuit the
8550         check for double structure chunks for DFmode arguments.
8551         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
8552         (mips_expand_prologue): Remove code to emit structure shifts.
8553         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
8554         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
8555         comments to say that only structure returns are a problem.
8556
8557 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8558
8559         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
8560         Fix to match produced versions.
8561         * fixinc/inclhack.def (longlong_t): New disabled test, ported
8562         from fixinc.svr4.
8563         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
8564         from fixinc.ptx.
8565         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
8566         ported from fixinc.ptx.
8567
8568 2003-08-26  Per Bothner  <pbothner@apple.com>
8569
8570         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
8571         (cpp_error_with_line):  Use fileline for appropriate parameter.
8572         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
8573         (struct cpp_reader):  Likewise for fields line and directive_line.
8574         (_cpp_begin_message):  Use fileline for appropriate parameter.
8575         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
8576         cpp_error):  Use fileline for appropriate parameters and variables.
8577         (print_location):  New local lin, since it is not a fileline.
8578
8579 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8580
8581         PR middle-end/12002
8582         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
8583         (FLOAT_TYPE_P): Define in terms of these two new macros.
8584         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
8585         for complex floating point types.
8586
8587 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
8588
8589         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
8590         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
8591         s390_output_pool_entry.
8592
8593 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8594
8595         * fixinc/inclhack.def (svr4_preproc_lint_on,
8596         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
8597         fixes, ported from fixinc.svr4.
8598
8599 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
8600
8601         * doc/install.texi (Prerequisites): Mention GNU make requirement.
8602
8603         * Makefile.in (AR_FOR_TARGET): Export it.
8604         (AR_CREATE_FOR_TARGET): Likewise.
8605         (AR_FLAGS_FOR_TARGET): Likewise.
8606         (AR_EXTRACT_FOR_TARGET): Likewise.
8607         (AWK): Likewise.
8608         (BUILD_PREFIX): Likewise.
8609         (BUILD_PREFIX_1): Likewise.
8610         (DESTDIR): Likewise.
8611         (GCC_FOR_TARGET): Likewise.
8612         (INCLUDES): Likewise.
8613         (INSTALL_DATA): Likewise.
8614         (LIB1ASMSRC): Likewise.
8615         (LIBGCC2_CFLAGS): Likewise.
8616         (MACHMODE_H): Likewise.
8617         (NM_FOR_TARGET): Likewise.
8618         (RANLIB_FOR_TARGET): Likewise.
8619         (libsubdir): Likewise.
8620         (slibdir): Likewise.
8621         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
8622         exporting.
8623         (libgcc.a): Don't pass them here.
8624         (stmp-multilib): Or here.
8625         (install-libgcc): Or here.
8626         (install-multilib): Or here.
8627         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
8628         (stage1_build): Or here.
8629
8630 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
8631
8632         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
8633         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
8634
8635 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
8636
8637         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
8638         "*fmaddsf", "*fmsubsf"): New insns.
8639
8640 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8641
8642         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
8643         (C1*C2)/X when unsafe math optimizations are allowed.
8644         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
8645         math optimizations.  Minor code clean-ups.  Recursively call
8646         fold when constructing sub-expressions.
8647
8648 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8649
8650         * builtins.c (fold_builtin_bitop): New function to perform constant
8651         folding of ffs, clz, ctz, popcount and parity builtin functions
8652         and their long and long long variants (such as ffsl and ffsll).
8653         (fold_builtin): fold_builtin_bitop when appropriate.
8654         * simplify-rtx.c (simplify_unary_operation): Honor both
8655         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
8656         evaluating clz and ctz at compile-time, for operands wider
8657         than HOST_WIDE_INT.
8658
8659 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
8660
8661         * builtins.c (build_function_call_expr): Don't set
8662         TREE_SIDE_EFFECTS here.
8663         * expr.c (emit_block_move_via_libcall): Likewise.
8664         (clear_storage_via_libcall): Likewise.
8665         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
8666         CALL_EXPRs.
8667
8668         * gcse.c (is_too_expensive): New function.
8669         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
8670
8671 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
8672
8673         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
8674         commented-out logic to use DCE threads (if present), add
8675         support for POSIX threads.
8676         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
8677         #defines for -pthread.  Add -lpthread to LIB_SPEC when
8678         -pthread.  In both cases take -mt as a synonym for -pthread
8679         for acc compatibility.
8680         Define GTHREAD_USE_WEAK to 0.
8681         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
8682         Remove old logic for DCE threads from LIB_SPEC.
8683         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
8684
8685 2003-08-25  Roger Sayle  <roger@eyesopen.com>
8686
8687         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
8688         return 0 for invalid argument types.  Instead drop through to a
8689         call of expand_call at the bottom of function.  If op is SQRT,
8690         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
8691
8692 2003-08-25  Richard Henderson  <rth@redhat.com>
8693
8694         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
8695         result when op0 is SImode.
8696
8697 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
8698
8699         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
8700         from fixinc.svr4.
8701         * fixinc/fixincl.x: Regenerate.
8702         * fixinc/tests/base/sys/signal.h: Regenerate.
8703
8704 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8705
8706         * combine.c (simplify_comparison): Re-enable widening of comparisons
8707         with non-paradoxical subregs of non-REG expressions.
8708
8709 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8710
8711         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
8712
8713 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8714
8715         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
8716
8717 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8718
8719         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
8720         * c-pretty-print.h (c_pretty_printer): Now typedef to the
8721         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
8722         (struct c_pretty_print_info): Document.  Add new fields.
8723         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
8724         (pp_direct_abstract_declarator): New macro.
8725         (pp_ptr_operator): Likewise.
8726         (pp_simple_type_specifier): Likewise.
8727         (pp_expression): Likewise.
8728         (pp_parameter_list): Rename from pp_parameter_declaration.
8729         * c-pretty-print.c (pp_c_whitespace): Now a function.
8730         (pp_c_left_paren): Likewise.
8731         (pp_c_right_paren): Likewise.
8732         (pp_c_dot): Likewise.
8733         (pp_c_ampersand): Likewise.
8734         (pp_c_arrow): Likewise.
8735         (pp_c_semicolon): Likewise.
8736         (pp_c_type_cast): New function.
8737         (pp_c_space_for_pointer_operator): Likewise.
8738         (pp_c_call_argument_list): Likewise.
8739         (pp_c_cv_qualifier): Adjust prototype.
8740         (pp_c_type_qualifier_list): Likewise.
8741         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
8742         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
8743         Adjust to follow standard grammar.
8744         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
8745         REFERENCE_TYPE.  Tidy.
8746         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
8747         (pp_c_parameter_declaration): Remove.
8748         (pp_c_abstract_declarator): Adjust prototype.
8749         (pp_c_direct_abstract_declarator): Likewise.
8750         (pp_c_type_id): Likewise.
8751         (pp_c_storage_class_specifier): Likewise.
8752         (pp_c_function_specifier): Likewise.
8753         (pp_c_declaration_specifiers): Likewise.
8754         (pp_c_direct_declarator): Likewise.
8755         (pp_c_declarator): Likewise.
8756         (pp_c_declarator): Likewise.
8757         (pp_c_declaration): Likewise.
8758         (pp_c_attributes): Likewise.  Tidy.
8759         (pp_c_function_definition): Adjust prototype.
8760         (pp_c_char): Likewise.
8761         (pp_c_string_literal): Likewise.
8762         (pp_c_integer_constant): Likewise.
8763         (pp_c_character_constant): Likewise.
8764         (pp_c_bool_constant): Likewise.
8765         (pp_c_enumeration_constant): Likewise.
8766         (pp_c_floating_constant): Likewise.
8767         (pp_c_constant): Likewise.
8768         (pp_c_identifier): Likewise.
8769         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
8770         (pp_c_initializer): Adjust prototype.
8771         (pp_c_init_declarator): Likewise.
8772         (pp_c_initializer_list): Likewise.
8773         (pp_c_id_expression): Likewise.
8774         (pp_c_postfix_expression): Likewise.
8775         (pp_c_expression_list): Likewise.
8776         (pp_c_unary_expression): Likewise.
8777         (pp_c_cast_expression): Likewise.
8778         (pp_c_multiplicative_expression): Likewise.
8779         (pp_c_additive_expression): Likewise.
8780         (pp_c_shift_expression): Likewise.
8781         (pp_c_relational_expression): Likewise.
8782         (pp_c_equality_expression): Likewise.
8783         (pp_c_and_expression): Likewise.
8784         (pp_c_exclusive_or_expression): Likewise.
8785         (pp_c_inclusive_or_expression): Likewise.
8786         (pp_c_logical_and_expression): Likewise.
8787         (pp_c_logical_or_expression): Likewise.
8788         (pp_c_conditional_expression): Likewise.
8789         (pp_c_assignment_expression): Likewise.
8790         (pp_c_expression): Likewise.  Tidy.
8791         (pp_c_statement): Likewise.  Document.
8792         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
8793
8794         * c-lang.c (c_initialize_diagnostics): Update.
8795         * c-common.h (strip_pointer_operator): Declare.
8796         * c-common.c (strip_pointer_operator): Define.
8797
8798 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
8799
8800         PR c++/8795
8801         * tree.h (build_method_type_directly): Declare.
8802         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
8803         (vector_size_helper): Likewise.
8804         * tree.c (build_method_type_directly): New function.
8805         (build_method_type): Use it.
8806
8807 2003-08-24  Richard Henderson  <rth@redhat.com>
8808
8809         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
8810         for 16-byte vector modes if sse not enabled; warn for abi change.
8811         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
8812
8813 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
8814
8815         * rtlanal.c (may_trap_p): Simplify an integer comparison.
8816
8817 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
8818
8819         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
8820         comment.  Enable for DYNIX/ptx systems (when they switch to
8821         regular fixincludes).
8822         * fixinc/fixincl.x: Regenerate.
8823
8824 2003-08-23  Jason Eckhardt  <jle@rice.edu>
8825
8826         * config/i860/t-i860: New.
8827         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
8828
8829 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
8830
8831         * c-decl.c (pushdecl): Only put decls which finish_struct will do
8832         something about onto incomplete chain.
8833         (finish_struct): If not removing type from incomplete
8834         list, update prev.
8835
8836 2003-08-20  Jan Hubicka  <jh@suse.cz>
8837
8838         PR target/11369
8839         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
8840
8841         PR target/11031
8842         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
8843         const_0_to_15_operand, const_0_to_255_operand): New predicates.
8844         * i386.h (PREDICATE_CODES): Add these.
8845         * i386.c (pinsrw and pextrw patterns): Use them.
8846
8847         PR target/10984
8848         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
8849
8850         PR target/8869
8851         * expr.c (convert_modes): Deal properly with integer to vector
8852         constant conversion.
8853
8854         PR target/8871
8855         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
8856
8857 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
8858
8859         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
8860         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
8861         ("*movhi"): ... this.
8862         ("movqi", "*movqi"): Likewise.
8863         ("movqi_64"): Remove.
8864         ("*zero_extendhisi2_31"): Change predicate to s_operand.
8865
8866 2003-08-23  Dale Johannesen  <dalej@apple.com>
8867         * calls.c (emit_library_call_value_1): Fix obvious errors in
8868         arguments to emit_group_store.
8869
8870 2003-08-23  Jason Eckhardt  <jle@rice.edu>
8871
8872         * calls.c (emit_library_call_value_1): Remove code related
8873         to LIBGCC_NEEDS_DOUBLE.
8874         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
8875         * doc/tm.texi: Likewise.
8876         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
8877
8878 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
8879
8880         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
8881
8882 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
8883
8884         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
8885         as well.  Put memory references in the varargs alias set.
8886         (mips_expand_prologue): Remove varargs handling from here.
8887
8888 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
8889
8890         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
8891         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
8892         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
8893         for function pointer calls.
8894         * config/s390/s390.md ("*negdi2_31"): Likewise.
8895
8896 2003-08-23  Roger Sayle  <roger@eyesopen.com>
8897
8898         * combine.c (apply_distributive_law): Correct comment.
8899
8900 2003-08-23  Jason Eckhardt  <jle@rice.edu>
8901
8902         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
8903
8904 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8905
8906         * config/i860/i860.c (i860_build_va_list): Create the va_decl
8907         declaration.  Document the va_list structure.
8908         (i860_va_start): Initialize the va_list structure.
8909         (i860_va_arg): Rewrite completely.
8910         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
8911         * config/i860/varargs.asm: Do not allocate or initialize
8912         a va_list.  Return the address of the register save area.
8913
8914 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8915
8916         * config/iq2000/iq2000.c: Fix comment typos.
8917         * config/iq2000/iq2000.md: Likewise.
8918
8919 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
8920
8921         * config/iq2000/iq2000.c: Follow spelling conventions.
8922         * config/iq2000/iq2000.h: Likewise.
8923         * config/mn10300/mn10300.c: Likewise.
8924
8925 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8926
8927         * config/i860/i860.c (output_move_double): Don't set latehalf
8928         to zero for CONST_INT (since it could be, e.g., -1).
8929
8930         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
8931         (MODSI3_LIBCALL): ...with this one.
8932         (UREMSI3_LIBCALL): Replace this macro...
8933         (UMODSI3_LIBCALL): ...with this one.
8934
8935 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8936
8937         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
8938         (output_delayed_branch): Remove prototype.
8939         (single_insn_src_p): Remove prototype.
8940         * config/i860/i860.c (single_insn_src_p): Remove function.
8941         (output_delayed_branch): Remove function.
8942         (output_delay_insn): Remove function.
8943         (va_start): Remove unconditional test and dead code, re-format.
8944         Fix coding style and spelling problems in various comments.
8945         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
8946         (blockage pattern): ...and use it here.
8947         (all define_peephole patterns related to delayed branches): Remove.
8948         Fix coding style and spelling problems in various comments.
8949
8950 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8951
8952         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
8953         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
8954         Convert all function definitions from traditional to ISO C90 syntax.
8955         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
8956         with 'GCC'.  Remove all uses of the PARAMS macro.
8957         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
8958         * config/i860/i860.md: Likewise.
8959         * config/i860/sysv4.h: Likewise.
8960         * config/i860/varargs.asm: Likewise.
8961
8962 2003-08-22  Jason Eckhardt  <jle@rice.edu>
8963
8964         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
8965         argument.
8966         (tdesc_section): Add prototype.
8967         Update copyright dates.
8968         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
8969         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
8970         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
8971         (targetm): Likewise.
8972         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
8973         for '%d' where necessary.
8974         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
8975         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
8976         by UNITS_PER_WORD when referencing (likewise for .floats).
8977         (I860_SVR4_VARARGS): Rename...
8978         (I860_SVR4_VA_LIST): ...to this.
8979         Call build() with 't' rather than 'field'.
8980         (i860_rtx_costs): New function.
8981         (TARGET_RTX_COSTS): Define.
8982         (i860_internal_label): New function.
8983         (TARGET_ASM_INTERNAL_LABEL): Define.
8984         (i860_file_start): New function.
8985         Update copyright dates.
8986         * config/i860/i860.h (CPP_PREDEFINES): Remove.
8987         (TARGET_CPU_CPP_BUILTINS): Define.
8988         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
8989         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
8990         (ASM_FILE_START): Remove.
8991         (ASM_FILE_START_1): Remove.
8992         (ASM_GLOBALIZE_LABEL): Remove.
8993         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
8994         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
8995         with targetm.asm_out.internal_label.
8996         Update copyright dates.
8997         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
8998         (CPP_PREDEFINES): Remove.
8999         (TARGET_OS_CPP_BUILTINS): Define.
9000         (GLOBAL_ASM_OP): Define.
9001         (ASM_FILE_START): Remove.
9002         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
9003         (TARGET_ASM_FILE_START): Define.
9004         Update copyright dates.
9005
9006 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9007
9008         * gcc/config.gcc (i860-*-sysv4*): Add target.
9009         * config/i860/i860-protos.h: New.
9010         * config/i860/i860.c: New.
9011         * config/i860/i860.h: New.
9012         * config/i860/i860.md: New.
9013         * config/i860/sysv4.h: New.
9014         * config/i860/varargs.asm: New.
9015         * config/i860/x-sysv4: New.
9016
9017 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9018
9019         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
9020         Remove all uses of PARAMS macro.
9021         Convert all function definitions to ISO C90 syntax.
9022         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
9023         * config/pa/fptr.c: Likewise.
9024         * config/pa/lib2funcs.asm: Likewise.
9025         * config/pa/long_double.h: Likewise.
9026         * config/pa/milli64.S: Likewise.
9027         * config/pa/pa-64.h: Likewise.
9028         * config/pa/pa-hpux.h: Likewise.
9029         * config/pa/pa-hpux10.h: Likewise.
9030         * config/pa/pa-hpux11.h: Likewise.
9031         * config/pa/pa-linux.h: Likewise.
9032         * config/pa/pa-modes.def: Likewise.
9033         * config/pa/pa-osf.h: Likewise.
9034         * config/pa/pa-pro-end.h: Likewise.
9035         * config/pa/pa.md: Likewise.
9036         * config/pa/pa32-linux.h: Likewise.
9037         * config/pa/pa64-linux.h: Likewise.
9038         * config/pa/pa64-hpux.h: Likewise.
9039         * config/pa/pa64-regs.h: Likewise.
9040         * config/pa/quadlib.c: Likewise.
9041         * config/pa/rtems.h: Likewise.
9042         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
9043         all uses of the PARAMS macro.
9044         * config/pa/pa.h: Likewise.
9045         * config/pa/som.h: Likewise.
9046
9047         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
9048         Remove all uses of PARAMS macro.
9049         Convert all function definitions to ISO C90 syntax.
9050         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
9051         Remove all uses of PARAMS macro.
9052         * config/iq2000.h: Remove all uses of PARAMS macro.
9053         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
9054
9055 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
9056
9057         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
9058         * config/s390/s390.c (gen_consttable): Remove.
9059         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
9060         (s390_output_pool_entry): New function.
9061         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
9062         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
9063         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
9064         (UNSPECV_POOL_ENTRY): ... this new constant.
9065         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
9066         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
9067         ("*pool_entry"): ... and replace by this new insn.
9068         ("literal_pool_31"): Do not emit anchor label if pool empty.
9069
9070         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
9071         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
9072         (s390_fixup_clobbered_return_reg): Remove.
9073         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
9074         (s390_return_addr_rtx): Always retrieve return address from save area
9075         slot.  Use save_return_addr_p to force slot to be filled.
9076         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
9077
9078 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
9079
9080         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
9081         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
9082         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
9083         around SB-1 errata if TARGET_FIX_SB1 is set.
9084         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
9085         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
9086
9087 2003-08-22  Roger Sayle  <roger@eyesopen.com>
9088
9089         * hashtable.c (ht_expand): Avoid calculating rehash for the common
9090         case that the first probe hits an empty hash table slot.
9091
9092 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
9093
9094         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
9095
9096 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
9097
9098         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
9099         (ptr_extend_plus_imm): ... this.
9100         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
9101         optimization in C++.
9102         (ia64_output_mi_thunk): Support ILP32 mode.
9103
9104 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
9105
9106         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
9107         function.
9108         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
9109
9110 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9111
9112         * config/i386/i386.c (const_int_1_operand): Simplify an
9113         integer comparison.
9114
9115 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
9116
9117         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
9118         * config/rs6000/ppc64-fp.c: Likewise.
9119
9120 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9121
9122         * cfgcleanup.c: Fix comment typos.
9123         * emit-rtl.c: Likewise.
9124         * optabs.c: Likewise.
9125         * ra-build.c: Likewise.
9126         * rtlanal.c: Likewise.
9127         * tree.h: Likewise.
9128
9129 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9130
9131         * c-decl.c: Fix comment formatting.
9132         * cfgrtl.c: Likewise.
9133         * combine.c: Likewise.
9134         * convert.c: Likewise.
9135         * dominance.c: Likewise.
9136         * dwarf2out.c: Likewise.
9137         * dwarfout.c: Likewise.
9138         * expmed.c: Likewise.
9139         * fold-const.c: Likewise.
9140         * gcov.c: Likewise.
9141         * genattrtab.c: Likewise.
9142         * ggc-common.c: Likewise.
9143         * mips-tfile.c: Likewise.
9144         * regmove.c: Likewise.
9145
9146 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9147
9148         * builtin-attrs.def: Fix comment formatting.
9149         * c-pretty-print.c: Likewise.
9150         * diagnostic.h: Likewise.
9151         * langhooks.h: Likewise.
9152         * recog.c: Likewise.
9153         * simplify-rtx.c: Likewise.
9154         * tree.def: Likewise.
9155
9156 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
9157
9158         * config/m68k/m68k-protos.h: Convert to ISO C90.
9159         * config/m68k/m68k.c: Likewise.
9160
9161 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
9162             Paul Dale  <pauli@snapgear.com>
9163             Peter Barada <peter@baradas.org>
9164
9165         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
9166         ColdFire cores.
9167
9168 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
9169
9170         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
9171         * config.gcc (*-*-openbsd): Don't set tm_file.
9172         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
9173         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
9174         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
9175         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
9176         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
9177         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
9178         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
9179         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
9180         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
9181         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
9182         xscale-*-coff): Use explicit and complete lists of target headers
9183         to include.  Move definitions to tm_defines where appropriate.
9184         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
9185         not-yet-contributed configuration.
9186
9187         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
9188         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
9189         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
9190         * config/i386/nto.h, config/iq2000/iq2000.h,
9191         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
9192         * config/m68k/linux.h, config/m68k/m68k-aout.h
9193         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
9194         * config/m68k/netbsd.h, config/m68k/openbsd.h
9195         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
9196         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
9197         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
9198         Remove includes of other target config headers, and
9199         definitions of macros moved to tm_defines lists.  Add #undefs
9200         where now necessary to prevent redefinition warnings.
9201
9202         * config/h8300/coff.h: New file split out of...
9203         * config/h8300/elf.h: ...here.
9204         * config/m68k/hp320base.h: New file split out of...
9205         * config/m68k/hp320.h: ...here.
9206         * config/rs6000/lynxbase.h: New file split out of...
9207         * config/rs6000/lynx.h: ...here.
9208
9209         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
9210         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
9211
9212         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
9213         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
9214         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
9215         Remove unnecessary #ifndef.
9216         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
9217         [under IN_LIBGCC2] with config/.
9218
9219 2003-08-21  Per Bothner  <pbothner@apple.com>
9220
9221         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
9222         to cpp_push_buffer.
9223         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
9224         by return_at_eof check.  Always call _cpp_pop_buffer at end.
9225
9226 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
9227
9228         PR target/11805
9229         * config/h8300/h8300.md (two anonymous patterns): Remove.
9230
9231 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
9232
9233         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
9234         * config/mips/mips.c (function_arg_pass_by_reference): Never return
9235         true for n32 & n64.
9236
9237 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
9238
9239         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
9240         and similarly in (A | C) == D where C & ~D != 0.
9241
9242 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
9243
9244         PR 8180
9245         * configure.in: When testing with_libs and with_headers, treat
9246         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
9247         * configure: Regenerate.
9248
9249 2003-08-20  Peter Barada <peter@baradas.org>
9250
9251         * longlong.h (umul_ppmm): Add ColdFire support.
9252
9253 2003-08-20  Peter Barada <peter@baradas.org>
9254             Bernardo Innocenti  <bernie@develer.com>
9255
9256         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
9257         * config/m68k/m68k.h: Likewise.
9258         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
9259         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
9260         * config/m68k/linux.h: Likewise.
9261         * config/m68k/m68k.c: Likewise.
9262         * config/m68k/m68k.md: Likewise.
9263         * config/m68k/m68kelf.h: Likewise.
9264         * config/m68k/netbsd-elf.h: Likewise.
9265         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
9266
9267 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
9268
9269         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
9270         * config/m68k/m68k.md: Likewise.
9271
9272 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
9273
9274         PR java/11996
9275         Revert this change:
9276         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
9277         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9278         types with precisions other than those given by native machine
9279         modes.
9280
9281 2003-08-20  Gunther Nikl  <gni@gecko.de>
9282
9283         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
9284         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
9285         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
9286         * config/m68k/m68k.md (anonymous define_insn): Likewise
9287         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
9288         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
9289         code selected by NO_ASM_FMOVECR
9290
9291 2003-08-20  Gunther Nikl  <gni@gecko.de>
9292
9293         * config/m68k/m68k.c (output_move_const_into_data_reg,
9294         output_move_himode): unify MOTOROLA/MIT handling of moveq
9295         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
9296         Likewise
9297
9298 2003-08-20  Gunther Nikl  <gni@gecko.de>
9299
9300         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
9301         label name
9302         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
9303         HOST_WIDE_INT_PRINT_DEC with %wd
9304
9305 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
9306
9307         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
9308         redefine warning.
9309
9310 2003-08-20  Roger Sayle  <roger@eyesopen.com>
9311
9312         PR middle-end/11984
9313         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
9314         operands before calling tree_int_cst_lt when performing associative
9315         transformations.
9316
9317 2003-08-20  Jason Merrill  <jason@redhat.com>
9318
9319         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
9320         (EXPR_CHECK): Don't check for 'r' or 's' if we're
9321         checking IS_EXPR_CODE_CLASS.
9322         * calls.c (calls_function_1): Likewise.
9323         * fold-const.c (fold): Likewise.
9324         * tree.c (iterative_hash_expr): Likewise.
9325         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
9326
9327 2003-08-20  Gunther Nikl  <gni@gecko.de>
9328
9329         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
9330         depending on MOTOROLA_BSR
9331         * config/m68k/m68k.md (anonymous define_insn): Likewise
9332
9333 2003-08-20  Jason Merrill  <jason@redhat.com>
9334
9335         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
9336         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
9337         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
9338         * dojump.c (do_jump): Likewise.
9339         * fold-const.c (operand_equal_p, fold): Likewise.
9340         (tree_expr_nonnegative_p): Likewise.
9341
9342         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
9343         TYPE_USER_ALIGN for FIELD_DECLs.
9344
9345         * attribs.c (decl_attributes): Rebuild the function pointer type after
9346         changing the target type.
9347         * tree.c (get_qualified_type): Also check that the attributes match.
9348
9349 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
9350
9351         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
9352         * objc/config-lang.in (stagestuff): ... to here.
9353
9354 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
9355
9356         PR c++/11946
9357         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
9358         NOP_EXPR) when necessary.
9359         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9360         types with precisions other than those given by native machine
9361         modes.
9362
9363 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
9364
9365         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
9366         because some macro is defined.
9367
9368         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
9369         options.
9370         * config/i386/darwin.h (ASM_SPEC): New.
9371         (SUBTARGET_EXTRA_SPECS): New.
9372         * config/rs6000/darwin.h (ASM_SPEC): New.
9373         (SUBTARGET_EXTRA_SPECS): New.
9374         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
9375         a cross-compiler between two different processors on Darwin.
9376         * configure: Regenerate.
9377
9378 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9379
9380         * builtins.c: Fix comment typos.
9381         * c-common.c: Likewise.
9382         * c-decl.c: Likewise.
9383         * c-pretty-print.c: Likewise.
9384         * cfgbuild.c: Likewise.
9385         * cfglayout.c: Likewise.
9386         * cfgloopanal.c: Likewise.
9387         * cgraphunit.c: Likewise.
9388         * cppfiles.c: Likewise.
9389         * dwarfout.c: Likewise.
9390         * expr.c: Likewise.
9391         * fold-const.c: Likewise.
9392         * gcse.c: Likewise.
9393         * ggc-page.c: Likewise.
9394         * haifa-sched.c: Likewise.
9395         * pretty-print.c: Likewise.
9396         * tree.c: Likewise.
9397         * tree.h: Likewise.
9398         * value-prof.c: Likewise.
9399
9400 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9401
9402         * c-decl.c: Follow spelling conventions.
9403         * cppfiles.c: Likewise.
9404
9405 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9406
9407         * c-common.c: Fix comment formatting.
9408         * c-common.h: Likewise.
9409         * c-decl.c: Likewise.
9410         * cppinit.c: Likewise.
9411         * cpplib.h: Likewise.
9412         * emit-rtl.c: Likewise.
9413         * input.h: Likewise.
9414         * line-map.h: Likewise.
9415         * opts.c: Likewise.
9416         * opts.h: Likewise.
9417         * simplify-rtx.c: Likewise.
9418
9419 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
9420
9421         * unwind-c.c: Add libgcc-style exception.
9422         * unwind-dw2.c: Likewise.
9423         * unwind-pe.h: Likewise.
9424         * unwind-sjlj.c: Likewise.
9425         * unwind.inc: Likewise.
9426
9427 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
9428
9429         PR c/5582 PR c++/10538
9430         * langhooks-def.h (lhd_decl_uninit): Declare.
9431         (LANG_HOOKS_DECL_UNINIT): New macro.
9432         (LANG_HOOKS_INITIALIZER): Adjust.
9433         * langhooks.h (struct lang_hooks): Add new field
9434         decl_uninit.
9435         * langhooks.c (lhd_decl_uninit): Define.
9436         * c-common.c (c_decl_uninit_1): New function.
9437         (c_decl_uninit): New function.
9438         (warn_init_self): Define.
9439         * c-common.h (c_decl_uninit): Declare.
9440         (warn_init_self): Declare.
9441         * c.opt: Introduce -Winit-self.
9442         * c-opts.c (c_common_handle_options): Set warn_init_self.
9443         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
9444         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
9445         * function.c (uninitialized_vars_warning): Call the language hook.
9446         * doc/invoke.texi: Document -Winit-self.
9447
9448 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
9449
9450         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
9451         to use better predicates and constraints.  Define new
9452         instruction to handle "trap_if" with DI-mode arguments.
9453         (conditional_trap): FAIL if trap code is not 0.
9454
9455 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
9456
9457         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
9458         strstr with $pb to a strcompare with "<pic base>"
9459         (ix86_output_addr_diff_elt): Output the real pic base.
9460
9461 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9462
9463         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
9464         (LANG_HOOKS_INITIALIZER): Correct.
9465         * c-lang.c: Likewise.
9466
9467 2003-08-19  Jan Hubicka  <jh@suse.cz>
9468
9469         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
9470         (cgraph_varpool_mark_needed_node): Likewise.
9471         * cgraph.h (notice_global_symbol): Declare
9472         * varasm.c (notice_global_symbol): Break out from ...
9473         (assemble_start_function): ... here; update for variables.
9474         (assemble_variable): Use notice_global_symbol.
9475
9476 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
9477
9478         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
9479         expect SFmode and DFmode arguments to be passed in FPRs,
9480         regardless of the underlying type.
9481
9482 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
9483
9484         PR target/11924
9485         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
9486         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
9487
9488 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
9489
9490         PR c/11207
9491         * c-typeck.c (set_init_index): Check for negative index.
9492
9493 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
9494
9495         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
9496         call0 ABI.
9497         * config/xtensa/crtn.asm (_init, _fini): Likewise.
9498         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
9499         __umodsi3, __modsi3): Likewise.
9500         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
9501         $(INCLUDES).
9502
9503 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
9504
9505         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
9506
9507 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9508
9509         * config/mips/mips.md: Quote C code in braces.  Remove use of
9510         fake const0_rtx operands.  Remove double backslashes.  Use \;.
9511         Remove workarounds for bogus warnings.
9512
9513 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9514
9515         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
9516         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
9517         rather than TARGET_MIPS4300.
9518         (mulsf3_internal, mulsf3_r4300): Likewise.
9519
9520 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9521
9522         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
9523
9524 2003-08-17  Roger Sayle  <roger@eyesopen.com>
9525
9526         * simplify-rtx.c (associative_constant_p): New function to test
9527         whether an RTX expression is an immediate constant.
9528         (simplify_associative_operation): New function to perform some
9529         reassociation optimizations of associative binary expressions.
9530         (simplify_binary_operation): Use simplify_associative_operation
9531         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
9532         Floating point expressions are only reassociated when unsafe
9533         math optimizations are permitted.
9534
9535 2003-08-17  Andreas Jaeger  <aj@suse.de>
9536
9537         * config/alpha/alpha.md: Remove usage of PARAMS.
9538
9539         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
9540         * config/i386/i386-interix.h: Likewise.
9541         * config/i386/winnt.c: Likewise.
9542         * config/i386/cygming.h: Likewise.
9543         * config/i386/cygwin2.c: Likewise.
9544         * config/darwin.c: Likewise.
9545         * config/darwin-c.c: Likewise.
9546         * config/darwin-protos.h: Likewise.
9547         * config/darwin.h: Likewise.
9548         * config/s390/s390-protos.h: Likewise.
9549         * config/s390/s390.c: Likewise.
9550         * config/ia64/ia64.c: Likewse
9551         * config/ia64/ia64-protos.h: Likewise.
9552         * config/ia64/ia64-c.c: Likewise.
9553
9554 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9555
9556         * config/sparc/sparc.c: Convert to ISO C.
9557
9558         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
9559         * config/sparc/sparc.c: Likewise.
9560
9561 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
9562
9563         PR c++/11512
9564         * stmt.c (expand_expr_stmt_value): Don't warn about any void
9565         typed expression.
9566
9567 2003-08-16  Jan Hubicka  <jh@suse.cz>
9568
9569         * i386.c (ix86_fntype_regparm): Rename from ...
9570         (ix86_function_regparm): ... this one; add fastcall and local
9571         functions.
9572         (ix86_function_ok_for_sibcall): Update.
9573         (ix86_return_pops_args): Likewise.
9574         (init_cumulative_args): Likewise.
9575         (x86_can_output_mi_thunk): Likewise.
9576         (function_arg): Fix formating.
9577         (x86_this_parameter): Fix fastcall.
9578         (x86_output_mi_thunk): Likewise.
9579
9580         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
9581         body as reachable; mark nested functions as needed too.
9582         (dump_cgraph): Do not output global.calls.
9583         * cgraph.h (cgraph_global_info): Kill.
9584         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
9585         (record_call_1): Speedup.
9586         (cgraph_analyze_function): Break out from ...; compute inlining
9587         parameters.
9588         (cgraph_finalize_compilation_unit): ... here.
9589         (cgraph_mark_inline): Kill computation of calls.
9590         (cgraph_decide_inlining): Do not compute most of initial values.
9591
9592 2003-08-14  Roger Sayle  <roger@eyesopen.com>
9593
9594         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
9595         to negate if either operand is easy to negate, if we don't care
9596         about sign-dependent rounding.
9597         (negate_expr): Make the logic to negate a REAL_CST explicit.
9598         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
9599         that's easy to negate, if we don't honor sign-dependent rounding.
9600         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
9601         negate, and the symmetric A * -B as -A * B if A is easy to negate.
9602         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
9603         -C/D if B and C are cheap to negate.  Add an explicit rule to
9604         optimize X/-1.0 as -X when we don't care about signaling NaNs.
9605
9606 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
9607
9608         * Makefile.in (tm_file): Rename tm_include_list.
9609         (tm_p_file): Rename tm_p_include_list.
9610         (build_xm_file): Rename build_xm_include_list.
9611         (host_xm_file): Rename host_xm_include_list.
9612         (xm_file): Rename xm_include_list.
9613         (xm_file_list): Add to be substituted.
9614         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
9615         Update to match.
9616         (bt-load.o): Add missing dependency on $(TM_H).
9617         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
9618         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
9619         build_xm_file, generate both *_file_list and *_include_list
9620         values from it.  (xm_file_list was formerly not being generated.)
9621         In *_include_list, prefix the names of all headers found in
9622         $(srcdir)/config with config/.  In each loop, consider only
9623         the special case files that can actually appear in that list.
9624         AC_SUBST all *_file_list and all *_include_list variables; do
9625         not AC_SUBST the plain *_file variables.
9626         * configure: Regenerate.
9627
9628 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9629
9630         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
9631
9632 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9633
9634         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
9635         direct calls.
9636         (attr_length_call): Include it here.  Improve length estimate for
9637         local calls.
9638         (output_call): Use targetm.binds_local_p.
9639
9640 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9641
9642         * builtins.c (CASE_MATHFN): New helper macro.
9643         (mathfn_built_in): Simplify and sort.
9644
9645         * protoize.c (substr): Delete, callers changed to `strstr'.
9646
9647 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
9648
9649         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
9650         * config/iq2000/xm-iq2000.h: Delete file.
9651
9652 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
9653
9654         * gengtype.c (walk_type): Process a subobject before processing
9655         the pointer that points to the subobject.
9656
9657 2003-08-13  Per Bothner  <pbothner@apple.com>
9658
9659         * regclass.c (init_reg_modes):  Make non-static.
9660         Rename to init_reg_modes_once per new naming convention.
9661         (init_regs):  Don't call init_reg_modes here.
9662         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
9663         * rtl.h (init_reg_modes_once):  New declaration.
9664         * toplev.c (backend_init):  Call init_regs after init_emit_once.
9665
9666 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9667
9668         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
9669         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
9670
9671 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
9672
9673         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
9674         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
9675
9676 2003-08-13  Dale Johannesen  <dalej@apple.com>
9677
9678         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
9679         handling of decrement-and-branch farther than 32 bits.
9680
9681 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
9682
9683         * configure.in (make_compare_target): Move test to ...
9684         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
9685         * configure: Regenerate.
9686
9687 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
9688
9689         * config/mips/iris6.h: Convert to C90 prototypes.
9690         * config/mips/irix6-libc-compat.c: Likewise.
9691         * config/mips/mips-protos.h: Likewise.
9692         * config/mips/mips.c: Likewise.
9693
9694 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
9695
9696         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
9697         for selected machines.  Comment heavily.
9698         fixinc/fixincl.x: Rebuild.
9699         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
9700
9701 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
9702
9703         * config/mips/mips.h: Tweak various comments.
9704         * config/mips/mips.c: Likewise.
9705
9706 2003-08-11  James E Wilson  <wilson@tuliptree.org>
9707
9708         PR optimization/11319
9709         PR target/10021
9710         * alias.c (find_base_value, case REG): Return 0 not src if no base
9711         found.
9712
9713 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9714
9715         * gcse.c (gmalloc): Fix last change.
9716
9717 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9718
9719         * simplify-rtx.c (simplify_binary_operation): Replace calls to
9720         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
9721         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
9722         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
9723
9724 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9725
9726         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
9727         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
9728         typecode for an ABS_EXPR.
9729
9730         * doc/c-tree.texi: Document ABS_EXPR.
9731
9732 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9733
9734         * fold-const.c (fold): Optimize any associative floating point
9735         operator with -funsafe-math-optimizations, not just MULT_EXPR.
9736
9737 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
9738
9739         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
9740         information in SHmedia case too.
9741         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
9742         Likewise.
9743         (__set_fpscr): Use an access via GOT for PIC case.
9744
9745 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
9746
9747         * configure.in (intermodule): Make switch test more portable.
9748         * configure: Regenerate.
9749
9750 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
9751
9752         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
9753         (restrap): Likewise.
9754
9755 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9756
9757         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
9758         (grealloc): Size argument is a size_t.
9759         (gcalloc): New function.  Use throughout in lieu of
9760         gmalloc/memset.
9761
9762         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
9763         xmalloc/memset.
9764         * config/ia64/ia64.c (ia64_reorg): Likewise.
9765         * conflict.c (conflict_graph_new): Likewise.
9766         * fixinc/fixincl.c (run_compiles): Likewise.
9767         * genattrtab.c (optimize_attrs): Likewise.
9768         * genrecog.c (new_decision): Likewise.
9769         * haifa-sched.c (schedule_block): Likewise.
9770         * hashtable.c (ht_create): Likewise.
9771
9772 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
9773
9774         * config/xtensa/lib2funcs.S: Fix whitespace.
9775         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
9776         syntax where appropriate.  Remove unnecessary backslash escapes.
9777         Reformat comments and fix some code formatting.
9778         (extendqisi2): Rearrange conditional.
9779         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
9780         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
9781         of fatal_insn.
9782
9783 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
9784
9785         * config/mips/mips.c: Various formatting fixes.
9786         (override_options): Resync -mtune handling with gas.
9787         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
9788         * config/mips/mips.h: More formatting fixes.
9789         (mips_abi): Move declaration.
9790         * config/mips/mips.md (exception_receiver): Add mode to
9791         unspec_volatile.
9792
9793 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
9794
9795         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
9796         evsplatfi here.
9797         (bdesc_1arg): Remove evsplati and evsplatfi.
9798
9799 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
9800
9801         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
9802         into account.
9803
9804 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9805
9806         * builtins.c (expand_builtin_strcat): Optimize constant strings.
9807
9808 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9809
9810         * pretty-print.c (pp_base_indent): Rename from pp_indent.
9811         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
9812         (struct c_pretty_print_info): Add more fields.
9813         (pp_c_left_paren): Move to c-pretty-print.c.
9814         (pp_c_right_paren): Likewise.
9815         (pp_c_left_brace): Likewise.
9816         (pp_c_right_brace): Likewise.
9817         (pp_c_left_bracket): Likewise.
9818         (pp_c_right_bracket): Likewise.
9819         (pp_c_declarator): Declare.
9820         (pp_c_direct_declarator): Likewise.
9821         (pp_c_specifier_qualifier_list): Likewise.
9822         (pp_c_type_id): Likewise.
9823         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
9824         (pp_c_type_qualifier_list): New.
9825         (pp_c_pointer): Likewise.
9826         (pp_c_parameter_type_list): Likewise.
9827         (pp_c_function_definition): Likewise.
9828         (pp_c_id_expression): Likewise.
9829         (pp_c_simple_type_specifier): Tidy.
9830         (pp_c_unary_expression): Likewise.
9831         (pp_c_expression): Likewise.
9832         (pp_c_pretty_printer_init): Likewise.
9833         (pp_c_specifier_qualifier_list): Rework..
9834         (pp_c_abstract_declarator): Likewise.
9835         (pp_c_postfix_expression): Likewise.
9836         (pp_c_primary_expression): Likewise.
9837         (pp_c_cast_expression): Likewise.
9838         (pp_c_direct_abstract_declarator): Likewise.
9839         (pp_c_storage_class_specifier): Likewise.
9840         (pp_c_function_specifier): Likewise.
9841         (pp_c_declaration_specifiers): Likewise.
9842         (pp_c_direct_declarator): Likewise.
9843         (pp_c_declarator): Likewise.
9844         (pp_c_declaration): Likewise.
9845         (pp_c_statement): Likewise.
9846         (pp_c_integer_constant): Rename from pp_c_integer_literal.
9847         (pp_c_character_constant): Rename from pp_c_character_literal.
9848         (pp_c_bool_constant): Rename from pp_c_bool_literal.
9849         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
9850         (pp_c_floating_constant): Rename from pp_c_real_literal.
9851         (pp_c_constant): Rename from pp_c_literal.
9852         * c-lang.c: Include diagnostic.h and c-pretty-print.h
9853         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
9854         (c_initialize_diagnostics): New.
9855         * Makefile.in (c-lang.o): Update dependency.
9856
9857 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
9858
9859         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
9860
9861 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
9862
9863         * config/mips/mips.c (mips_no_mips16_string): Remove.
9864         (override_options): Don't handle -mips16 as part of -mipsN.
9865         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
9866         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
9867         (TARGET_OPTIONS): Remove -mno-mips16.
9868
9869 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
9870
9871         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
9872         (coprocessor2_operand): Likewise.
9873         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
9874         (lookup_name): Remove declaration.
9875         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
9876         (mips16, mips_abicalls): Remove.
9877         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
9878         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
9879         (coprocessor_operand, coprocessor2_operand): Remove.
9880         (override_options): Don't set mips16 or mips_abicalls.
9881         (print_operand): Don't expect SIGN_EXTEND operands.
9882         (mips_secondary_reload_class): Likewise.
9883         (mips_output_conditional_branch): Remove disabled long-branch code.
9884         * config/mips/mips.h (call_used_regs): Remove declaration.
9885         (may_call_alloca): Likewise.
9886         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
9887         (mips_abicalls, mips16): Remove declarations.
9888         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
9889         (CC1_SPEC): Remove outdated comment.
9890         (MIPS_VERSION, MACHINE_TYPE): Remove.
9891         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9892         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
9893         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
9894         (PUSH_ROUNDING): Likewise.
9895         (ASSEMBLER_SCRATCH_REGNUM): Remove.
9896         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
9897         and mips16 with TARGET_MIPS16.
9898
9899 2003-08-09  Per Bothner  <pbothner@apple.com>
9900
9901         * cppinit.c (cpp_read_main_file):  Split out source-independent
9902         initialization to separate function ...
9903         (cpp_post_options):  New function.
9904         * cppfiles.c (cpp_stack_file):  Rename public name to ...
9905         (_cpp_stack_file):  New internal function name.
9906         * cpplib.h:  Update accordingly.
9907         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
9908         (cpp_read_main_file):  Don't initialize line here.
9909         * c-opts.c (c_common_post_options):  Call cpp_post_options.
9910         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
9911         * fix-header.c (read_scan_file):  Call cpp_post_options.
9912
9913 2003-08-09  Per Bothner  <per@bothner.com>
9914
9915         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
9916
9917 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9918
9919         * pa.c (pa_asm_output_mi_thunk): Fix typo.
9920
9921 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
9922
9923         PR preprocessor/11839
9924         * cppfiles.c (open_file): Handle ENOTDIR.
9925
9926 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
9927
9928         PR target/11699
9929         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
9930
9931 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9932
9933         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
9934         source/destination is not a register operand.
9935
9936 2003-08-08  Richard Henderson  <rth@redhat.com>
9937
9938         PR target/11535
9939         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
9940         RETURN_ADDRESS_POINTER_REGNUM.
9941         (ia64_expand_prologue): Don't frob it.
9942         (ia64_output_function_epilogue): Likewise.
9943         (ia64_return_addr_rtx): New.
9944         (ia64_split_return_addr_rtx): New.
9945         * config/ia64/ia64-protos.h: Update.
9946         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
9947         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
9948         (GENERAL_REGNO_P): Don't check it.
9949         (AR_*_REGNUM): Renumber.
9950         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
9951         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
9952         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
9953         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
9954         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
9955         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
9956         (movdi_ret_addr): New.
9957
9958 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
9959
9960         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
9961
9962 2003-08-08  Roger Sayle  <roger@eyesopen.com>
9963
9964         * tree.h (get_identifier) Define a macro form of get_identifier
9965         that calls get_identifier_with_length when the string is constant.
9966         (get_identifier_with_length): Change type of second argument to
9967         size_t in prototype.
9968         * stringpool.c (get_identifier): Undefine the macro before giving
9969         the function definition.
9970         (get_identifier_with_length): Change  type of second argument to
9971         size_t in function definition.
9972         * hashtable.c (calc_hash): Change type of second argument to size_t.
9973         (ht_lookup): Change type of third argument to size_t.  Reorganize
9974         to speed-up the cases where the hash table slot is empty, or the
9975         first probe matches (i.e. there isn't a collision).
9976         * hashtable.h (ht_lookup): Adjust function prototype.
9977
9978 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
9979
9980         PR target/9697
9981         PR target/11777
9982         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
9983
9984 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
9985
9986         * common.opt: Add debug switches.
9987         * flags.h (use_gnu_debug_info_extensions): Boolify.
9988         * opts.c (write_symbols, debug_info_level,
9989         use_gnu_debug_info_extensions): Move from toplev.c.
9990         (set_debug_level): New.
9991         (common_handle_options): Handle debug switches.
9992         (print_help): Display target options directly.
9993         * toplev.c (debug_hooks): Don't initialize.
9994         (write_symbols, debug_info_level,
9995         use_gnu_debug_info_extensions): Move to opts.c.
9996         (debug_args, display_help, decode_g_option): Remove.
9997         (process_options): Set no debug if level zero here,
9998         and no-debug-hooks.  Error here if impossible debug format selected.
9999         * toplev.h (display_help, decode_g_option): Remove.
10000
10001 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
10002
10003         * tree.c (get_file_function_name_long): Fix size of alloca() area.
10004
10005 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
10006
10007         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
10008         and gcc_cv_prog_cmp_skip.
10009         * configure: Regenerate.
10010
10011 2003-08-08  Stan Cox  <scox@redhat.com>
10012
10013         * config/iq2000: New port.
10014         * config.gcc (iq2000-*-elf): Added.
10015         * doc/install.texi (Specific):  Add iq2000 description.
10016
10017 2003-08-08  Andreas Schwab  <schwab@suse.de>
10018
10019         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
10020         and insert missing empty argument.
10021         * configure: Regenerate.
10022
10023 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10024
10025         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
10026         (attr_length_millicode_call): Likewise.
10027         (attr_length_call): Likewise.  Revise some maximum insn lengths.
10028         (attr_length_indirect_call): Likewise.
10029         (output_call): Fix thinko that added extra nop.
10030         * pa.h (IN_NAMED_SECTION_P): Define.
10031
10032         PR c++/11712
10033         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
10034         __STDC_EXT__ when using C++ dialect.
10035
10036 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
10037
10038         * sh.c (calc_live_regs): If the return address pointer is live,
10039         force pr live.
10040         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
10041         for saves / restores.
10042         (sh_expand_epilogue): If sh_media_register_for_return returns a
10043         register number, flag the instructions that restores PR_MEDIA_REG
10044         as possibly dead.
10045         Remove dead update of offset.
10046         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
10047         we can use the result of get_hard_reg_initial_val.
10048         * sh.md (UNSPEC_RA): New constant.
10049         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
10050         (load_ra).  Handle UNSPEC_RA.
10051         (sibcall_media): Use PR_MEDIA_REG.
10052
10053         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
10054         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
10055         needs saving on SHmedia.
10056
10057 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
10058
10059         * config/s390/s390.md: Replace all occurrences of \\t with \t.
10060
10061 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
10062
10063         * local-alloc.c (combine_regs): Fix comment typo.
10064
10065 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
10066
10067         * c-decl.c (builtin_decls): Replace with first_builtin_decl
10068         and last_builtin_decl.
10069         (c_init_decl_processing): Initialize both.
10070         (c_reset_state): Iterate from first_builtin_decl to
10071         last_builtin_decl inclusive to reintroduce builtins.
10072
10073 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
10074
10075         * doc/extend.texi (Function Attributes): Document the IA-64 version
10076         of the "model" attribute.
10077
10078         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
10079         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
10080         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
10081
10082         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
10083         (ia64_encode_section_info): Likewise.
10084         (ia64_attribute_table): Add "model" attribute.
10085         (TARGET_ENCODE_SECTION_INFO): Define.
10086         (small_addr_symbolic_operand): New function.
10087         (got_symbolic_operand): Return 0 for a symbolref to an object
10088         in the small address area.
10089         (enum ia64_addr_area): New type.
10090         (small_ident1): New variable.
10091         (small_ident2): Likewise.
10092         (init_idents): New function.
10093         (ia64_get_addr_area): Likewise.
10094         (ia64_encode_addr_area): Likewise.
10095         (ia64_encode_section_info): Likewise.
10096         (ia64_expand_load_address): For symbolic references to objects in
10097         the small-address-area, load the address via gen_rtx_SET() (which,
10098         eventually, will expand into "addl").
10099
10100 2003-08-06  Per Bothner  <pbothner@apple.com>
10101
10102         * line-map.h (fileline):  New typedef.
10103         (struct line_map, linemap_add, linemap_lookup):  Use it.
10104         * input.h (struct location_s):  Comment notes that long-term we want
10105         to replace it by fileline.
10106
10107 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
10108
10109         Fix SHcompact exception handling:
10110         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
10111         by the prologue, return a MEM with return_address_pointer_rtx
10112         as address.
10113         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
10114         (RETURN_ADDR_OFFSET): Don't define.
10115         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
10116         registers that are visible in compact mode.  Show that SHmedia
10117         registers still exist in compact mode, even if there are not
10118         readily accessible.
10119         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
10120         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
10121         and DW_EH_PE_pcrel for pic data.
10122         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
10123         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
10124         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
10125         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
10126         * sh.md (movsi_media-1): New splitter.
10127
10128 2003-08-06  Graeme Peterson <gp@qnx.com>
10129
10130         * config/i386/nto.h: New.
10131         * config/i386/t-nto: New.
10132         * config.gcc (i[34567]86-*-nto-qnx*): New.
10133
10134 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
10135
10136         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
10137
10138 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
10139
10140         * calls.c (load_register_parameters): Arrange for call_fusage to
10141         report the whole register as used when shifting to the msb.
10142
10143 2003-08-05  Roger Sayle  <roger@eyesopen.com>
10144
10145         * builtins.c (expand_builtin): When not optimizing, call the library
10146         function for all builtins that have library functions (except alloca).
10147
10148 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
10149
10150         * c.opt: Introduce -fworking-directory.
10151         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
10152         * c-common.h (flag_working_directory): Declare.
10153         * c-common.c (flag_working_directory): Define.
10154         * c-opts.c (c_common_handle_options): Set it.
10155         (sanitize_cpp_opts): Set...
10156         * cpplib.h (struct cpp_options): ... working_directory option.
10157         (struct cpp_callbacks): Add dir_change.
10158         * cppinit.c (read_original_filename): Call...
10159         (read_original_directory): New.  Look for # 1 "directory//"
10160         and process it.
10161         (cpp_read_main_file): Call dir_change callback if working_directory
10162         option is set.
10163         * gcc.c (cpp_unique_options): Pass -g*.
10164         * c-lex.c (cb_dir_change): New.
10165         (init_c_lex): Set dir_change callback.
10166         * toplev.c (src_pwd): New static variable.
10167         (set_src_pwd, get_src_pwd): New functions.
10168         * toplev.h (get_src_pwd, set_src_pwd): Declare.
10169         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
10170         * dwarf2out.c (gen_compile_unit_die): Likewise.
10171         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
10172
10173 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10174
10175         * pretty-print.h (pp_set_line_maximum_length): Make macro.
10176         (pp_set_prefix): Likewise.
10177         (pp_destroy_prefix): Likewise.
10178         (pp_remaining_character_count_for_line): Likewise.
10179         (pp_clear_output_area): Likewise.
10180         (pp_formatted_text): Likewise.
10181         (pp_last_position_in_text): Likewise.
10182         (pp_emit_prefix): Likewise.
10183         (pp_append_text): Likewise.
10184         (pp_flush): Likewise.
10185         (pp_format_text): Likewise.
10186         (pp_format_verbatim): Likewise.
10187         (pp_tree_identifier): Tidy.
10188         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
10189         (pp_base_format_verbatim): Rename from pp_format_verbatim.
10190         (pp_base_flush): Rename from pp_flush.
10191         (pp_base_set_line_maximum_length): Rename from
10192         pp_set_line_maximum_length.
10193         (pp_base_clear_output_area): Rename from pp_clear_output_area.
10194         (pp_base_set_prefix): Rename from pp_set_prefix.
10195         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
10196         (pp_base_emit_prefix): Rename from pp_emit_prefix.
10197         (pp_base_append_text): Rename from pp_append_text.
10198         (pp_base_formatted_text): Rename from pp_formatted_text.
10199         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
10200         (pp_base_remaining_character_count_for_line): Rename from
10201         pp_remaining_character_count_for_line.
10202         * diagnostic.h (diagnostic_format_decoder): Tidy.
10203         (diagnostic_flush_buffer): Likewise.
10204         * c-pretty-print.h: (pp_c_string_literal): Declare.
10205         (pp_c_real_literal): Likewise.
10206         (pp_c_integer_literal): Likewise.
10207         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
10208         pp_identifier.
10209         (pp_c_character_literal): Tidy.
10210         (pp_c_string_literal): Make public.
10211         (pp_c_bool_literal): Likewise.
10212         (pp_c_integer_literal): Likewise.
10213         (pp_c_real_literal): Likewise.
10214
10215         * Makefile.in (C_PRETTY_PRINT_H): New variable.
10216         (c-pretty-print.o): Update dependence.
10217
10218 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
10219
10220         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
10221         ".set nomacro" state.
10222         (fix_truncsfsi2_macro): Likewise.
10223
10224 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
10225
10226         * tree.h (DID_INLINE_FUNC): Remove macro.
10227         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
10228         add tree check for FUNCTION_DECL.
10229         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
10230         (struct tree_decl): Rename inlined_function_flag to
10231         declared_inline_flag.
10232         * c-common.h (c_lang_decl): Remove.
10233         (DECL_ESTIMATED_INSNS): Remove.
10234         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
10235         (DECL_DECLARED_INLINE_P): Remove.
10236         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
10237         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
10238         (finish_function): Make uninlinable a bool.  Fixup call to
10239         tree_inlinable_function_p() and fix some code style issues.
10240         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
10241         * cgraph.c (dump_cgraph): Likewise.
10242         * cgraphunit.c (cgraph_decide_inlining): Likewise
10243         (cgraph_finalize_compilation_unit): Likewise.
10244         Also update call to tree_inlinable_function_p().
10245         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
10246         look at DECL_DECLARED_INLINE and reverse logic.
10247         * print-tree.c (print_node): Likewise.
10248         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
10249         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
10250         prototype.
10251         * tree-inline.c (inlinable_function_p): Split up in this function to
10252         check for basic inlining inhibiting conditions, and new
10253         limits_allow_inlining() function.  Warn if inlining is impossible
10254         because the inline candidate calls alloca or uses sjlj exceptions.
10255         (limits_allow_inlining): this new function to check if the inlining
10256         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
10257         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
10258         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
10259         Update prototypes.
10260         (tree_inlinable_function_p): Make a bool.  Update call to
10261         inlinable_function_p
10262         (expand_call_inline): Use limits_allow_inlining() when not in
10263         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
10264         instead see if the function was declared `inline'.
10265
10266 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
10267
10268         * gcse.c (try_replace_reg): Fix updating of note.
10269
10270 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10271
10272         PR middle-end/11771
10273         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
10274         logic in negate_expr, i.e. we don't invert (A-B) for floating
10275         point types unless flag_unsafe_math_optimizations.
10276
10277 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10278
10279         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
10280         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
10281         for floating point expressions with -ffast-math.
10282         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
10283         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
10284
10285 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10286
10287         * c-common.c (flag_noniso_default_format_attributes): Delete.
10288         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
10289         (c_attrs_initialized): Delete.
10290         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
10291         always call c_init_attributes.
10292         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
10293         set c_attrs_initialized when done.
10294         (c_common_insert_default_attributes): Delete.
10295         * c-common.h (flag_noniso_default_format_attributes): Delete.
10296         (c_coomon_insert_default_attributes): Delete prototype.
10297         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
10298         flag_noniso_default_format_attributes.
10299
10300         * c-decl.c (c_insert_default_attributes): Delete.
10301         * c-tree.h (c_insert_default_attributes): Delete prototype.
10302
10303         * attribs.c (decl_attributes): Don't call insert_default_attributes
10304         langhook.  Update function description comment.
10305         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
10306         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
10307         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
10308         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
10309
10310         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
10311         define.
10312
10313 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
10314
10315         * config/mips/mips.c (override_options): Disable -G on targets that
10316         have no .section support.
10317         (mips_select_section): Use default_select_section for such targets.
10318
10319 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
10320
10321         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
10322         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
10323         * fixinc/fixincl.x: Rebuild.
10324         * fixinc/tests/base/regexp.h: New test.
10325
10326 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
10327
10328         * c-ppoutput.c (cb_line_change): Don't skip line changing while
10329         parsing macro arguments in the top-level context.
10330
10331 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
10332
10333         * config.in: Remove HAVE_LSTAT.
10334         * configure, configure.in: Don't test for lstat.
10335
10336 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10337
10338         * opts.c (decode_options): Do language-specific initialization for
10339         the global diagnostic context.
10340         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
10341         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
10342         (LANG_HOOKS_INITIALIZER): Adjust.
10343         * langhooks.h (struct lang_hooks): Add new field
10344         initialize_diagnostics.
10345         * langhooks.c (lhd_initialize_diagnostics): Define.
10346
10347 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10348
10349         * pretty-print.h:   Adjust macro definitions.
10350         * pretty-print.c (pp_newline): Rename to pp_base_newline.
10351         (pp_character): Rename to pp_base_character.
10352         (pp_string): Rename to pp_base_string.
10353         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
10354         (pp_newline):  Likewise.  Adjust.
10355         (pp_c_char): Adjust.
10356
10357 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10358
10359         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
10360         BUILT_IN_LLABS): Move to miscellaneous section.
10361
10362 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
10363
10364         PR preprocessor/11534
10365         * cppexp.c (parse_defined): Warn only if -pedantic.
10366
10367 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
10368
10369         * cppfiles.c (stack_file): Use file path.
10370
10371 2003-08-02  Roger Sayle  <roger@eyesopen.com>
10372
10373         * builtin-types.def (BT_SSIZE): New primitive type.
10374         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
10375         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
10376         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
10377         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
10378         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
10379         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
10380         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
10381         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
10382         few functions that define default attributes using it.
10383         * c-common.c (c_common_insert_default_attributes): Do nothing.
10384
10385         * doc/extend.texi: Document these "new" builtins.
10386
10387 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
10388
10389         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
10390         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
10391         when -mieee-fp set and -shared not set.
10392         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
10393
10394 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
10395
10396         * cppfiles.c (struct _cpp_file): Rename once_only_next to
10397         next_file.  Remove import and pragma_once, add once_only.
10398         (find_file): Add new file structures to the all_files list.
10399         (should_stack_file): Mark #import-ed files once-only, and
10400         don't stack them if the file has already been stacked.
10401         (_cp_mark_file_once_only): Simplify.
10402         * cpphash.h (struct cpp_reader): Rename once_only_files
10403         to all_files.  Rename saw_pragma_once to seen_once_only.
10404         (_cpp_mark_file_once_only): Update prototype.
10405         * cpplib.c (do_pragma_once): Update.
10406
10407 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
10408
10409         * cppfiles.c (ENOTDIR): Remove.
10410         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
10411         other than ENOENT here.
10412         (once_only_file_p): Rename should_stack_file.
10413         (find_file, open_file_failed, read_file_guts): Report errors
10414         with full path name.
10415         (read_file): Move pch handling to should_stack_file.
10416         (should_stack_file): Handle PCH and once-only issues, and
10417         reading the file.
10418         (stack_file): Don't do file reads.
10419
10420 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10421
10422         * libgcov.c (gcov_exit): Cleanup and fix.
10423         * profile.c (compute_value_histograms): Don't try to read profiles
10424         that are not present.
10425
10426 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10427
10428         * builtins.def: Categorize.
10429
10430         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
10431         Mind fp rounding.
10432         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
10433
10434 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
10435
10436         * config.gcc: Enable posix threads by default on darwin.
10437
10438 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
10439
10440         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
10441         even if nehedges1 is 0.
10442
10443 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
10444
10445         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
10446         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
10447         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
10448         and defintions.
10449
10450         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
10451         * fixinc/fixincl.x: Regenerate.
10452         * fixinc/tests/base/math.h: Regenerate to match test_text change.
10453
10454 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10455
10456         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
10457
10458 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10459
10460         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
10461         for accesses to exc_ptr.
10462
10463 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
10464
10465         * doc/sourcebuild.texi (Front End Directory): Don't make references
10466         to libsubdir, it's not part of the interface to frontends.
10467         * doc/install.texi (Configuration): Help users read faster by saying
10468         that GCC's configure options are the standard autoconf ones.
10469         Mention --libdir.  Update the default rules for finding the
10470         assembler.  Don't use libsubdir since we haven't said what it means.
10471         (Specific): In the Solaris 7 notes, update the place to put the
10472         assembler.
10473         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
10474         * doc/cpp.texi (Search Path): Actually, the search path
10475         depends on libdir, which can relocate with cpp.
10476         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
10477         now a private interface between the Makefile and the driver.
10478
10479 2003-08-01  Richard Henderson  <rth@redhat.com>
10480
10481         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
10482
10483         * varasm.c (lookup_constant_def): New function.
10484         * rtl.h (lookup_constant_def): Declare it.
10485         * dwarf2out.c (loc_descriptor_from_tree): Use it.
10486         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
10487
10488 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
10489
10490         * c-decl.c (gettags, pushdecl_function_level): Delete.
10491         (last_function_parm_vars): Rename last_function_parm_others.
10492         (current_function_parm_vars): Rename current_function_parm_others.
10493         (struct c_scope): Rewrite comment explaining this data structure.
10494         Add names_last, blocks_last, parms_last fields.  Rename
10495         incomplete_list to incomplete.
10496         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
10497         (poplevel): Ignore second argument.  No need to nreverse
10498         anything.  Restructure such that each list is processed
10499         exactly once.  Use 'const location_t *locus' syntactic sugar
10500         variable where useful.  Issue unused variable warnings
10501         ourselves, do not rely on function.c.
10502         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
10503         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
10504         (implicitly_declare): decl cannot be error_mark_node.
10505         (undeclared_variable): Manipulate scope structure directly.
10506         (c_make_fname_decl): Likewise.
10507         (getdecls, c_init_decl_processing): Fix comment.
10508         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
10509         for 'last' variable.
10510         (grokparms): No need to nreverse parms list.
10511         (store_parm_decls_newstyle): Set up the parms_last and
10512         names_last fields of the new scope too.
10513         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
10514         on parms to begin with; check this under ENABLE_CHECKING.  Set
10515         up parms_last.
10516         (check_for_loop_decls): Refer directly to current_scope->tags.
10517         Use consistent quote style in diagnostics.
10518         (c_write_global_declarations): The names list is not backward.
10519
10520         * c-common.h: Don't prototype gettags.
10521         * c-parse.in: Call poplevel with second argument 0 always.
10522
10523 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10524
10525         * builtins.def: Resort builtins.
10526
10527 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10528
10529         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
10530         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
10531         Prepend "__builtin_" onto NAME with string concatenation.  Remove
10532         explicit "__builtin_" from each macro call.
10533
10534         Reformat entire file.
10535
10536 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10537
10538         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
10539         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
10540
10541 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
10542
10543         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
10544         CCL1, or CCL2 modes with floating point operations.
10545
10546         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
10547         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
10548         "*subdf3_cconly"): New insns.
10549         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
10550
10551 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
10552
10553         * Makefile.in: Refine dependencies.
10554         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
10555         * c.opt: Update help for -Wimport.
10556         * cppfiles.c: Include hashtab.h.  Update comments.
10557         (stack_file): Read the file before updating dependencies.
10558         (once_only_file_p): Be smarter about marking once-only files.
10559         (_cpp_mark_file_once_only): Correct the check for existence on
10560         the list.
10561         (open_file_failed): Use name not path, which is NULL.
10562         * cpphash.h: Don't include hashtab.h.
10563         (struct _cpp_file): Remove.
10564         (struct cpp_reader): Update.
10565         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
10566         * cpplib.h (struct cpp_options): Remove warn_import.
10567         (cpp_simplify_path): Remove.
10568
10569 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
10570
10571         PR c++/11295
10572         * doc/extend.texi (Statement Expressions): Document C++ semantics.
10573
10574 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10575
10576         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
10577
10578 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10579
10580         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
10581         throughout.
10582         * builtins.def: Likewise.
10583
10584 2003-07-31  Jason Merrill  <jason@redhat.com>
10585
10586         * Makefile.in (bubblestrap): Don't require a previous full
10587         bootstrap.
10588
10589         * expr.c (mostly_zeros_p): No longer static.
10590         * tree.h: Declare it.
10591         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
10592         unless we need to do substitutions.
10593
10594 2003-07-31  Roger Sayle  <roger@eyesopen.com>
10595
10596         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
10597         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
10598         as pow(x,2.0) when the latter will be expanded back into x*x.
10599         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
10600         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
10601         pow can never set errno when used with an integer exponent.
10602         Always use expand_powi when exponent is -1, 0, 1 or 2.
10603         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
10604         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
10605         the pow forms of these expressions.
10606
10607 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
10608
10609         * Makefile.in (libexecdir): New.
10610         (libsubdir): Use gcc instead of gcc-lib.
10611         (libexecsubdir): New.
10612         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
10613         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
10614         gcc-lib.
10615         (installdirs): Make libexecsubdir.
10616         (install-common): Put executables in libexecsubdir.
10617         (itoolsdir): Use libexecsubdir.
10618         (itoolsdatadir): New.
10619         (install-mkheaders): Separate data files and executables.
10620         (install-collect2): Put executables in libexecsubdir.
10621         (uninstall): Remove libexecsubdir.
10622         * mkheaders.in: Update for new arrangement of files.
10623         (libexecdir): New.
10624         (libexecsubdir): New.
10625         (itoolsdir): Use libexecsubdir.
10626         (itoolsdatadir): New.
10627         * gcc.c (gcc_libexec_prefix): New.
10628         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
10629         (standard_exec_prefix_1): Use libexec.
10630         (standard_exec_prefix_2): New.
10631         (standard_libexec_prefix): New.
10632         (process_command): Update for new arrangement of files.  Compute
10633         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
10634
10635 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
10636
10637         * inclhack.def (stdio_va_list): Avoid bogus replacement which
10638         triggers on Interix.
10639         * fixincl.x: Regenerate.
10640
10641 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
10642
10643         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
10644         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
10645
10646 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10647
10648         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
10649
10650 2003-07-31  Per Bothner  <pbothner@apple.com>
10651
10652         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
10653         (add_input_filename):  New function.
10654         (handle_options):  Call add_input_filename directly instead of
10655         with a lang hook.
10656         * opts.h (in_fnames, num_in_fnames):  Moved here.
10657         (add_input_filename):  Declare.
10658         * c-decl.c:  Need to #include opts.h.
10659         * Makefile.in (c-decl.o):  Also depends on opts.h.
10660         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
10661         (c_common_handle_filename):  Replaced by add_input_filename.
10662         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
10663         Remove.
10664         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
10665         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
10666         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
10667         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
10668
10669 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10670
10671         * combine.c (try_combine): Set JUMP_LABEL for newly created
10672         unconditional jump.
10673
10674 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10675
10676         * fold-const.c (fold): Fold some comparisons of bit operations.
10677
10678 2003-07-31  Jan Hubicka  <jh@suse.cz>
10679
10680         * cgraph.c (create_edge): Fix typo.
10681         * i386.c (pic_symbolic_operand): Reorder tests.
10682
10683 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
10684
10685         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
10686         more fully.
10687         (Gcov Data Files): Update.
10688
10689 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10690
10691         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
10692         default.
10693
10694         * gthr-posix.c: New file.
10695         * gthr-posix.h: Define _REENTRANT if missing.
10696         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
10697
10698         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
10699         by gthr-posix.o.
10700         * config/alpha/t-osf-pthread: New file.
10701
10702         * fixinc/inclhack.def (alpha_pthread): New fix.
10703         * fixinc/fixincl.x: Regenerate.
10704         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
10705
10706         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
10707         warning.
10708         Fixes PR bootstrap/9330.
10709
10710 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10711
10712         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
10713         without GNU ld.
10714         Update comment.
10715         * configure: Regenerate.
10716
10717 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
10718
10719         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
10720         setter.
10721
10722 2003-07-30  Roger Sayle  <roger@eyesopen.com>
10723
10724         * builtins.def: Alphabetize.
10725
10726 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
10727
10728         * doc/c-tree.texi: Normalize spellings of "lowercase" and
10729         "uppercase".
10730         * doc/cpp.texi: Likewise.
10731         * doc/md.texi: Likewise.
10732         * doc/rtl.texi: Likewise.
10733         * doc/tm.texi: Likewise.
10734
10735 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
10736
10737         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
10738         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
10739         of cc1obj.
10740
10741 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
10742
10743         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
10744         macros before defining them.
10745
10746 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
10747
10748         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
10749         UNSPECV_BLOCKAGE): New constants.
10750         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
10751         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
10752         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
10753         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
10754
10755         (all insns and expanders): Write output control string as brace block
10756         where appropriate.  Remove \-escapes for doublequote characters.
10757
10758 2003-07-31  Jan Hubicka  <jh@suse.cz>
10759
10760         * gcse.c (insert_store): Fix typo in previous patch.
10761
10762 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
10763
10764         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
10765
10766 2003-07-30  Andi Kleen  <ak@muc.de>
10767
10768         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
10769
10770 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10771
10772         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
10773         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
10774         GCOV_N_VALUE_COUNTERS): New.
10775         * profile.c (compute_value_histograms): New static function.
10776         (branch_prob): Read back the value histograms.
10777         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
10778         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
10779         * value-prof.c: Add comment on reading the profile.
10780         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
10781         * doc/invoke.texi (-fprofile-values): Document behavior with
10782         -fbranch-probabilities.
10783
10784 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
10785
10786         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
10787
10788 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
10789
10790         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
10791         symbolically.
10792
10793 2003-07-30  Jan Hubicka  <jh@suse.cz>
10794
10795         * gcse.c (insert_store): Ignore fake edges.
10796
10797         * c-common.c (flag_vtable_gc): Kill.
10798         * c-common.g (flag_vtable_gc): Kill.
10799         * c-opts (c_common_handle_option): Kill.
10800         * c.opt (fvtable-gc): Kill.
10801         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
10802         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
10803         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
10804
10805         * invoke.texi (-ftable-gc): Kill documentation.
10806
10807         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
10808         just because function body is missing.
10809
10810         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
10811
10812 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
10813
10814         * unwind-sjlj.c: Fix typo in file description.
10815
10816 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
10817
10818         * calls.c (load_register_parameters): When shifting reg sized values
10819         to the msb, move the value to a reg first.
10820
10821 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
10822
10823         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
10824         * line-map.h (linemap_add): Update comments.
10825         * line-map.c (linemap_add): Update comments, interpret zero-length
10826         filename as "<stdin>".
10827
10828 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
10829
10830         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
10831
10832 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
10833
10834         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
10835         New static variables.
10836         (struct c_scope): Add parms and warned_forward_parm_decls
10837         fields; remove parm_order.
10838         (storedecls, storetags): Delete.
10839         (poplevel): Also clear bindings on the parms chain.
10840         (pushdecl): Handle forward declarations of parameters, and
10841         chain PARM_DECLs on the parms list, not the names list.
10842         (lookup_name_current_level): Check for PARM_DECLs on the parms
10843         list too.
10844         (push_parm_decl): Don't update parm_order.
10845         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
10846         warning, only once per parameter list, and set TREE_ASM_WRITTEN
10847         on the decls here.  Then move the forward decls to the names list.
10848         (grokparms): Set last_function_parm_vars.
10849         (get_parm_info): Don't use gettags or getdecls.  No need to
10850         extract non-parms from the parms list, or reorganize the parms
10851         list.  Feed nonparms back in the TREE_TYPE of the list node
10852         returned.  Issue only one error per parameter list for "void"
10853         appearing more than once in said parameter list.  Collapse
10854         parmlist_tags_warning into this function to avoid double scan
10855         of tags list.
10856         (start_function): Set current_function_parm_vars.
10857         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
10858         directly.  Get non-parms from current_function_parm_vars; no
10859         need to extract them from the parms chain.  Properly bind tags
10860         in the new scope.
10861         (store_parm_decls_oldstyle): No need to extract non-parameters
10862         from the parms chain, nor to store them back afterward.  Move
10863         declaration to top of function, restructure code reordering
10864         DECL_ARGUMENTS.
10865         (store_parm_decls): No need to save and restore warn_shadow.
10866         * c-parse.in: Don't call parmlist_tags_warning nor
10867         clear_parm_order.  Call mark_forward_parm_decls when forward
10868         parm decls are encountered.
10869         * c-tree.h: Prototype mark_forward_parm_decls; not
10870         clear_parm_order or parmlist_tags_warning.
10871
10872 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
10873
10874         * c-common.c (allow_pch): Remove.
10875         * c-common.h (allow_pch): Remove.
10876         (c_common_no_more_pch): Declare.
10877         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
10878         * c-pch.c: Include hosthooks.h.
10879         (c_common_valid_pch): Don't check allow_pch.
10880         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
10881         (c_common_no_more_pch): New.
10882         * ggc-common.c: Include hosthooks.h.
10883         (gt_pch_save): Call gt_pch_get_address.
10884         (gt_pch_restore): Call gt_pch_use_address.
10885         * hooks.c (hook_voidp_size_t_null): New.
10886         (hook_bool_voidp_size_t_false): New.
10887         * hooks.h (hook_voidp_size_t_null): New.
10888         (hook_bool_voidp_size_t_false): New.
10889         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
10890         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
10891         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
10892         HOST_HOOKS_GT_PCH_USE_ADDRESS.
10893         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
10894         gt_pch_use_address.
10895         * doc/hostconfig.texi (Host Common): Document
10896         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
10897         * Makefile.in (c-pch.o): Depend on hosthooks.h.
10898         (ggc-common.o): Likewise.
10899
10900         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
10901         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
10902         (pch_address_space): New.
10903         (darwin_rs6000_gt_pch_get_address): New.
10904         (darwin_rs6000_gt_pch_use_address): New.
10905
10906 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
10907
10908         PR preprocessor/11569
10909         PR preprocessor/11649
10910         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
10911         * cppfiles.c: Completely rewritten.
10912         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
10913         struct cpp_path is now struct cpp_dir.
10914         (remove_duplicates): Don't simplify path names.
10915         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
10916         cpp_stack_file.
10917         * cpphash.h: Include hashtab.h.
10918         (_cpp_file): Declare.
10919         (struct cpp_buffer): struct include_file is now struct _cpp_file,
10920         and struct cpp_path is now struct cpp_dir.  Rename members.
10921         (struct cpp_reader): Similarly.  New members once_only_files,
10922         file_hash, file_hash_entries, quote_ignores_source_dir,
10923         no_search_path, saw_pragma_once.  Remove all_include_files and
10924         max_include_len.  Make some members bool.
10925         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
10926         (_cpp_stack_file): Renamed from _cpp_read_file.
10927         (_cpp_stack_include): Renamed from _cpp_execute_include.
10928         (_cpp_init_files): Renamed from _cpp_init_includes.
10929         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
10930         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
10931         (cpp_read_next_file): Rename and move to cppfiles.c.
10932         (cpp_read_main_file): Update.
10933         * cpplib.c (run_directive): Update for renamed members.
10934         (do_include_common, _cpp_pop_buffer): Update.
10935         (do_import): Undeprecate #import.
10936         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
10937         * cpplib.h: Remove file_name_map_list.
10938         (cpp_options): Remove map_list.
10939         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
10940         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
10941
10942 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
10943
10944         * Makefile.in:  Make stamp-objdir safe for parallel builds.
10945
10946 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
10947
10948         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
10949         (info):  Depend on stmp-docobjdir.
10950
10951 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10952
10953         * configure: Regenerate.
10954
10955 2003-07-29  Jan Hubicka  <jh@suse.cz>
10956
10957         PR C++/11131
10958         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
10959         in !unit-at-a-time mode.
10960
10961 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
10962
10963         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
10964         main function.
10965
10966 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
10967
10968         PR c++/11667
10969         * c-common.c (shorten_compare): Take into account differences
10970         between C and C++ representation for enumeration types.
10971         * tree.h (set_min_and_max_values_for_integral_type): Declare.
10972         * stor-layout.c (set_min_and_max_values_for_integral_type): New
10973         function, broken out from ...
10974         (fixup_signed_type): ... here and ...
10975         (fixup_unsigned_type): ... here.
10976
10977 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
10978
10979         * c-decl.c: Update commentary, adjust blank lines throughout.
10980         (struct c_scope): Fix indentation.  Reorder members so
10981         outer-context pointers come first, booleans last.
10982         (duplicate_decls, define_label): Use a 'locus' variable for
10983         diagnostic locations in a few more places.
10984         (warn_if_shadowing): Un-split a conditional that fits on one line.
10985         (c_init_decl_processing): No need to clear current_scope and
10986         current_function_scope.
10987         (start_decl): Merge if/else if statements with same action.
10988         (push_parm_decl): Rename old_immediate_size_expand to use
10989         save_foo convention; save/restore around entire function.
10990         (grokdeclarator): Remove unnecessary braces.
10991
10992 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
10993             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
10994
10995         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
10996         when warn_declaration_after_statement.  Call pedwarn_c90, not
10997         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
10998         * c-common.c (warn_declaration_after_statement): Define.
10999         * c-common.h (warn_declaration_after_statement): Declare.
11000         * c.opt (Wdeclaration-after-statement): New.
11001         * c-errors.c (pedwarn_c90): New function.
11002         * c-opts.c (c_common_handle_option) <case
11003         OPT_Wdeclaration_after_statement>: New.
11004         * c-tree.h (pedwarn_c90): Declare.
11005         * doc/invoke.texi (Option Summary): Document
11006         -Wdeclaration-after-statement.
11007         (Warning Options): Ditto.
11008
11009 2003-07-28  Jan Hubicka  <jh@suse.cz>
11010
11011         * i386.md (memory attribute) Avoid accessing uninitialized memory
11012         for ishift1 type instructions.
11013
11014 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
11015
11016         * configure.in (--enable-checking): Add fold category.
11017         (ENABLE_FOLD_CHECKING): Define if requested.
11018         * configure: Rebuilt.
11019         * config.in: Rebuilt.
11020         * doc/install.texi: Document it.
11021         * fold-const.c: Include md5.h.
11022         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
11023         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
11024         print_fold_checksum): New functions.
11025
11026         * fold-const.c (fold): Never modify argument passed to fold, instead
11027         change a copy and return it.
11028         * convert.c (convert_to_integer): Likewise.
11029
11030 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
11031
11032         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
11033         cleanup of junk after #else and #endif directives.  Collapse repeated
11034         clauses into for statment.
11035
11036         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
11037
11038 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
11039
11040         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
11041         (keep_next_if_subblocks): Rename next_is_function_body.
11042         (pushlevel): Adjust commentary.  Always set ->keep on the
11043         outermost level of a function.  Don't set ->keep_if_subblocks.
11044         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
11045         (store_parm_decls): Adjust to match.
11046         (finish_function): Adjust to match.
11047         Call poplevel with all three arguments zero.
11048
11049         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
11050         New functions split out of store_parm_decls.
11051         Avoid unnecessary work. Use local variables consistently.
11052         (store_parm_decls): Likewise.
11053
11054         (finish_function): No need to set functionbody flag on call to
11055         poplevel.
11056         (struct language_function): Remove scope field.
11057         (c_push_function_context, c_pop_function_context): No need to
11058         save and restore current_scope.
11059
11060 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
11061
11062         * doc/extend.texi (Deprecated Features): Implicit typename is
11063         gone. Default args on types is going.
11064
11065 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
11066
11067         * Makefile.in (ifcvt.o): Depend on target.h
11068         * ifcvt.c (target.h): Include.
11069         (if_convert): Don't call mark_loop_exit_edges if we can't
11070         modify jumps.
11071
11072 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11073
11074         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
11075
11076 2003-07-26  Richard Henderson  <rth@redhat.com>
11077
11078         PR inline-asm/11676
11079         * cse.c (count_reg_usage): Handle asm_operands properly.
11080
11081 2003-07-26  Roger Sayle  <roger@eyesopen.com>
11082
11083         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
11084         (DEF_EXT_FALLBACK_BUILTIN): Delete.
11085         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
11086         the regular DEF_EXT_LIB_BUILTIN macro.
11087         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
11088         the regular DEF_LIB_BUILTIN macro.
11089         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
11090         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
11091         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
11092         DEF_EXT_LIB_BUILTIN macro.
11093
11094         * c-decl.c (duplicate_decls): Remove code to handle builtin
11095         functions prototyped without an argument list.
11096
11097 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
11098
11099         * config/i386/winnt.c: Revert 2003-07-08 change.
11100         (i386_pe_section_type_flags): Remove error_with_decl here too.
11101
11102 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11103
11104         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
11105         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
11106         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
11107         (v850_handle_data_area_attribute): Likewise.
11108
11109 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
11110
11111         * varasm.c (output_constant_def_contents): Use
11112         ASM_DECLARE_CONSTANT_NAME if defined.
11113         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
11114         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
11115         objects get at least one byte to prevent assembler problems.
11116         (ASM_DECLARE_CONSTANT_NAME): New.
11117
11118         * Makefile.in (libbackend.o): Remove options_.h.
11119         (mostlyclean): Likewise.
11120
11121         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
11122         insert a label at the end of an function under Mach-O.
11123
11124         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
11125
11126 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
11127
11128         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
11129         equality.
11130         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
11131
11132         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
11133
11134 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11135
11136         * doc/passes.texi (Passes): Mention pretty-printing and
11137         diagnostic files.
11138
11139 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
11140
11141         * doc/extend.texi (Function Attributes): GNU C++ does now allow
11142         unused parameter decls.
11143         (Attribute Syntax): GNU C++ does not allow label attributes to be
11144         after the ':'.
11145
11146 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11147
11148         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
11149         (objc_declare_class): Likewise.
11150         (error_with_ivar): Likewise.
11151         (start_class): Likewise.
11152         (warn_with_method): Likewise.
11153
11154 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11155
11156         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
11157         from GCC.
11158         * calls.c (try_to_integrate): Don't use xxx_with_decl.
11159         (expand_call): Likewise.
11160         * dwarfout.c (output_reg_number): Likewise.
11161         * expr.c (expand_expr): Likewise.
11162         * function.c (assign_temp): Likewise.
11163         (uninitialized_vars_warning): Likewise.
11164         (setjmp_args_warning): Likewise.
11165         (expand_function_end): Likewise.
11166         * stmt.c (fixup_gotos): Likewise.
11167         (warn_about_unused_variables): Likewise.
11168         (expand_end_bindings): Likewise.
11169         * stor-layout.c (layout_decl): Likewise.
11170         (place_field): Likewise.
11171         * toplev.c (check_global_declarations): Likewise.
11172         (rest_of_handle_inlining): Likewise.
11173         (default_tree_printer): New function.
11174         (general_init): Initialize diagnostic machinery before routing
11175         signals to the ICE machinery.  Set default tree printer.
11176         * toplev.h (pedwarn_with_decl): Remove declaration.
11177         (warning_with_decl): Likewise.
11178         (error_with_decl): Likewise.
11179         (pedwarn): Remove attribute for the time being.
11180         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
11181         * varasm.c (named_section): Likewise.
11182         (make_decl_rtl): Likewise.
11183         (assemble_variable): Likewise.
11184         (merge_weak): Likewise.
11185         (declare_weak): Likewise.
11186
11187         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
11188         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
11189         (format_with_decl): Remove.
11190         (diagnostic_for_decl): Likewise.
11191         (pedwarn_with_decl): Likewise.
11192         (warning_with_decl): Likewise.
11193         (error_with_decl): Likewise.
11194         (diagnostic_initialize): Adjust.
11195         (diagnostic_count_diagnostic): Likewise.
11196         (announce_function): Likewise.
11197         (lhd_print_error_function): Likewise.
11198         (diagnostic_report_current_module): Likewise.
11199         (default_diagnostic_starter): Likewise.
11200         (diagnostic_report_diagnostic): Likewise.
11201         (default_diagnostic_finalizer): Likewise.
11202         (verbatim): Likewise.
11203         (error): Likewise.
11204         (warning): Likewise.
11205         * opts.c (common_handle_option): Likewise.
11206         * pretty-print.c: New file.
11207         * c-pretty-print.h (pp_base): Override.
11208         * c-pretty-print.c: Adjust use of macros throughout.
11209         (pp_buffer): New macro.
11210         (pp_newline): Likewise.
11211         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
11212         * Makefile.in (DIAGNOSTIC_H): New variable.
11213         (c-errors.o): Use it.
11214         (c-objc-common.o): Likewise.
11215         (c-common.o): Likewise.
11216         (c-opts.o): Likewise.
11217         (c-format.o): Likewise.
11218         (diagnostic.o): Likewise.
11219         (opts.o): Likewise.
11220         (toplev.o): Likewise.
11221         (rtl-error.o): Likewise.
11222         (dwarf2out.o): Likewise.
11223         (jump.o): Likewise.
11224         (pretty-print.o): New rule.
11225
11226 2003-07-24  Roger Sayle  <roger@eyesopen.com>
11227
11228         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
11229         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
11230         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
11231         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
11232         (DEF_FRONT_END_LIB_BUILTIN): Delete.
11233         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
11234         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
11235
11236         * builtins.c (build_string_literal): New function to construct
11237         a char* pointer to a string literal.
11238         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
11239         "rtx target" to be consistent with other expand_builtin_* functions.
11240         Change 3rd argument from "int unlocked" to "bool unlocked".
11241         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
11242         c-common.c to avoid front-end dependencies.  Optimize printf("")
11243         as a no-op when the result isn't required.  Handle embedded NULs
11244         in format string.
11245         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
11246         from c-common.c to avoid front-end dependencies.  Likewise, optimize
11247         fprintf(fp,"") as a no-op when the result isn't required, evaluating
11248         fp for side-effects.  Handle embedded NULs in format string.
11249         (expand_builtin_sprintf): Fix typo.
11250         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
11251         optimizing.  Adjust calls of expand_builtin_fputs to match the API
11252         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
11253         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
11254         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
11255
11256         * c-common.c (is_valid_printf_arglist): Delete.
11257         (c_expand_builtin): Delete.
11258         (c_expand_builtin_printf): Moved to builtins.c. Delete.
11259         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
11260         (c_expand_expr): No longer treat CALL_EXPRs specially.
11261         (CALLED_AS_BUILT_IN): Delete.
11262
11263 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11264
11265         PR optimization/11631
11266         * gcse.c (store_motion): Connect infinite loops to exit.
11267
11268 2003-07-24  Jason Merrill  <jason@redhat.com>
11269
11270         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
11271         (boolean_true_node, boolean_false_node): Likewise.
11272         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
11273         * tree.c (build_common_tree_nodes): Init boolean_type_node.
11274         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
11275         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
11276         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
11277         (truthvalue_true_node): Renamed from boolean_true_node.
11278         (truthvalue_false_node): Renamed from boolean_false_node.
11279         * c-decl.c: Just set truthvalue_* to integer_*.
11280         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
11281
11282 2003-07-24  Roger Sayle  <roger@eyesopen.com>
11283
11284         * c-decl.c (match_builtin_function_types): New subroutine of
11285         duplicate_decls to test whether a redeclaration of a builtin
11286         function is suitably close, i.e. the return type and all of
11287         the argument types have the same modes as the builtin expects.
11288         (duplicate_decls): Fuzzy type matching for builtin functions
11289         moved to match_builtin_function_types.
11290
11291 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11292
11293         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
11294         flag correctly.
11295
11296 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
11297
11298         * c-decl.c: Search-and-replace change 'binding level' to
11299         'scope' in commentary.
11300         (struct binding_level): Now struct c_scope.
11301         (current_binding_level): Now current_scope.
11302         (free_binding_level): Now scope_freelist.
11303         (current_function_level): Now current_function_scope.
11304         (global_binding_level): Now global_scope.
11305         (make_binding_level): Now make_scope.
11306         (pop_binding_level): Now pop_scope.
11307
11308 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11309
11310         * configure.in (libgcc_visibility): Add missing whitespace.
11311
11312 2003-07-24  Richard Henderson  <rth@redhat.com>
11313
11314         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
11315         __gcc_personality_v0.
11316
11317 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11318
11319         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
11320
11321 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
11322
11323         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
11324         documentation missed from my 2003-07-09 patch.
11325
11326 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
11327
11328         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
11329         it's not provided.
11330         * configure: Rebuild.
11331
11332 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
11333
11334         PR c/10602
11335         * c-typeck.c (type_lists_compatible_p): Do not compare
11336         arguments if one of them is an error_mark_node
11337
11338 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
11339
11340         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
11341         if current_function_calls_eh_return.
11342
11343 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
11344
11345         * doc/c-tree.texi (OFFSET_TYPE): Update description.
11346
11347 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
11348
11349         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
11350         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
11351         __umodsi3, __modsi3): Increase frame size to 32.
11352
11353 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
11354
11355         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
11356         prototype.
11357
11358 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
11359
11360         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
11361
11362         PR optimization/10679
11363         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
11364
11365 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11366
11367         PR target/11607 and PR target/11516
11368         * pa.md (extzv, extv, insv): Revert latter half of last patch.
11369
11370 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
11371
11372         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
11373         * varasam.c (output_constant): Likewise.
11374
11375 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
11376
11377         * alias.c: Fix comment formatting.
11378         * c-common.c: Likewise.
11379         * c-decl.c: Likewise.
11380         * c-opts.c: Likewise.
11381         * combine.c: Likewise.
11382         * cpplib.c: Likewise.
11383         * diagnostic.c: Likewise.
11384         * dojump.c: Likewise.
11385         * final.c: Likewise.
11386         * fold-const.c: Likewise.
11387         * gcc.c: Likewise.
11388         * gcse.c: Likewise.
11389         * ggc-page.c: Likewise.
11390         * jump.c: Likewise.
11391         * loop.c: Likewise.
11392         * mips-tfile.c: Likewise.
11393         * recog.c: Likewise.
11394         * regclass.c: Likewise.
11395         * regmove.c: Likewise.
11396         * tree.c: Likewise.
11397         * tree.h: Likewise.
11398
11399 2003-07-22  Per Bothner  <pbothner@apple.com>
11400
11401         * line-map.c (add_line_map):  Handle invalid LEAVE request.
11402         Fixes PR preprocessor/11361.
11403
11404 2003-07-22  Per Bothner  <pbothner@apple.com>
11405
11406         * diagnostic.c.(diagnostic_report_current_module):  Update to match
11407         2003-06-05 changes to push_srcloc and pop_srcloc.
11408
11409 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
11410
11411         * doc/trouble.texi: Better document two-stage name lookup.
11412
11413 2003-07-22  Eric Christopher <echristo@redhat.com>
11414
11415         * config/s390.c (s390_valid_pointer_mode): New.
11416         (TARGET_VALID_POINTER_MODE): Use.
11417         (s390_emit_prologue): Add tpf profiling hooks.
11418         (s390_emit_epilogue): Ditto.
11419         * config/s390.h (MASK_TPF): New.
11420         (TARGET_TPF): Use.
11421         (POINTERS_EXTEND_UNSIGNED): Define.
11422         * config/s390.md (ptr_extend): New pattern.
11423
11424 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
11425
11426         * hashtable.c (approx_sqrt): Make static.
11427         * hashtable.h: Don't prototype approx_sqrt.
11428         * line-map.c (init_line_maps): Rename linemap_init.
11429         (free_line_maps): Rename linemap_free.
11430         (add_line_map): Rename linemap_add.
11431         (lookup_line): Rename linemap_lookup.
11432         (print_containing_files): Rename linemap_print_containing_files.
11433         * linemap.h: Update to match.
11434
11435         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
11436         linemap routines to use new names.
11437
11438 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11439
11440         * c-common.c (handle_packed_attribute): Don't pack a struct via a
11441         typedef. Propagate packedness from a main variant.
11442
11443 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
11444
11445         * Makefile.in (install-common): Add dependency on installdirs.
11446
11447 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
11448
11449         * c-common.c (c_common_type_for_mode): Return integer types for
11450         pointer modes.
11451
11452 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
11453
11454         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
11455         (finish_decl): Call maybe_apply_pragma_weak here.
11456         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
11457         TREE_PUBLIC and TREE_STATIC are decided.
11458         (start_function): Move call to maybe_apply_pragma_weak.  Check that
11459         DECL_ASSEMBLER_NAME isn't set too early.
11460
11461         * cpplex.c (_cpp_process_line_notes): Mention option name in
11462         trigraphs warning.
11463
11464 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
11465
11466         * combine.c (if_then_else_cond): Simplify the comparison of
11467         rtx against -1, 0, and 1.
11468         * loop.c (check_dbra_loop): Likewise.
11469         * optabs.c (emit_conditional_move): Likewise.
11470         (emit_conditional_add): Likewise.
11471         * config/i386/i386.md (*movsi_or): Likewise.
11472         (*movdi_or_rex6): Likewise.
11473
11474 2003-07-22  Jan Hubicka  <jh@suse.cz>
11475
11476         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
11477
11478 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
11479
11480         * cppfiles.c (open_file_pch): Don't put unused entries in the
11481         splay tree.  Remove dead code.
11482
11483 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
11484
11485         * c-common.h (num_in_fnames): Declare.
11486         (c_static_assembler_name): Move from here...
11487         * c-tree.h (c_static_assembler_name): ... to here.
11488         * c-opts.c: Don't include langhooks-def.h.
11489         (c_static_assembler_name): Move to c-decl.c.
11490         (num_in_fnames): Make externally visible.
11491         * c-decl.c: Include langhooks-def.h.
11492         (c_static_assembler_name): Move from c-opts.c.
11493         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
11494         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
11495
11496         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
11497         when it's not needed.
11498
11499 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
11500
11501         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
11502         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
11503         (rs6000_emit_prologue): Save FPRs inline if set.
11504
11505 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
11506
11507         * config/ia64/ia64.md (prefetch): Support predicate.
11508
11509 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
11510
11511         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
11512         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
11513         table.
11514
11515 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11516
11517         PR optimization/11536
11518         * unroll.c (loop_iterations): Do not replace a register holding
11519         the final value by its equivalent before the loop if it is not
11520         invariant.
11521
11522 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
11523
11524         * doc/extend.texi: Fixes to spelling, grammar, and diction.
11525
11526 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
11527
11528         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
11529         (V850 Options): Spelling fixes.
11530
11531 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
11532
11533         * doc/invoke.texi: Fixes to style, grammar and diction.
11534
11535 2003-07-20  Roger Sayle  <roger@eyesopen.com>
11536
11537         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
11538         * system.h (SMALL_STACK): Poison obsolete target macro.
11539         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
11540
11541 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
11542
11543         * configure.in:  Cache the results of testing for cmp's capabilities.
11544         * configure:  Regenerate.
11545
11546 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
11547
11548         PR debug/11279
11549         * dwarf2out.c (gen_enumeration_type_die): Remember that
11550         enumerators can be unsigned.
11551
11552 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
11553
11554         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
11555         (push_label_level, pop_label_level): Kill.
11556         (struct binding_level): Rename level_chain to outer.
11557         Add outer_function field.  Change parm_flag, function_body,
11558         keep, keep_if_subblocks to 1-bit bitfields of type bool.
11559         (current_function_level): New variable.
11560         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
11561         (keep_next_level, declare_parm_level, warn_if_shadowing):
11562         Update to match.
11563         (struct language_function): Kill named_labels, shadowed_labels fields.
11564         (c_init_decl_processing, start_function, c_push__function_context)
11565         (c_pop_function_context): No need to muck with named_labels nor
11566         shadowed_labels.
11567
11568         (make_binding_level): No need to clear the structure here.
11569         (pop_binding_level): Always operate on current_binding_level.
11570         Update current_function_level if necessary.
11571         (pushlevel): Don't clear named_labels.  Update current_function_level
11572         if necessary.  Use "true" and "false" where appropriate.
11573         (poplevel): Diagnose labels defined but not used, or vice
11574         versa, and clear out label-meanings leaving scope, while
11575         walking down the decls list, for all binding levels.
11576         Handle LABEL_DECLs appearing in the shadowed list.
11577         pop_binding_level takes no arguments.
11578         (pushdecl_function_level): Use current_function_level.
11579
11580         (make_label, bind_label): New static functions.
11581         (declare_label): New exported function.
11582         (lookup_label, define_label): Rewritten for new data structure.
11583         (shadow_label): Kill.
11584
11585         * c-tree.h: Prototype declare_label; don't prototype
11586         push_label_level, pop_label_level, nor shadow_label.
11587         * c-parse.in: Remove all calls to push_label_level and
11588         pop_label_level.  Use declare_label for __label__ decls.
11589
11590         * doc/extend.texi: Clarify that __label__ can be used to
11591         declare labels with local scope in any nested block, not
11592         just statement expressions.  Cross-reference nested functions
11593         section from local labels section.
11594
11595 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11596
11597         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
11598
11599 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
11600
11601         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
11602
11603 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11604
11605         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
11606         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
11607
11608 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
11609
11610         * config/s390/s390.c (legitimize_pic_address): Access local symbols
11611         relative to the GOT instead of relative to the literal pool base.
11612         (s390_output_symbolic_const): Handle new GOT-relative accesses.
11613         * config/s390/s390.md ("call"): Access local functions and PLT stubs
11614         relative to the GOT instead of relative to the literal pool base.
11615         ("call_value"): Likewise.
11616         ("call_value_tls"): Likewise.
11617
11618         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
11619         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
11620         (s390_chunkify_finish): Likewise.
11621         (s390_chunkify_cancel): Likewise.
11622         (s390_reorg): Adapt caller.
11623         (find_base_register_in_addr,
11624         find_base_register_ref, replace_base_register_ref): Delete.
11625         (find_ltrel_base, replace_ltrel_base): New functions.
11626         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
11627         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
11628         base vs. index register usage.
11629         (struct constant_pool): Remove 'anchor'.
11630         (s390_add_anchor): Delete.
11631         (s390_dump_pool): Remove anchor handling.
11632         * config/s390/s390.md ("reload_anchor"): Remove.
11633
11634         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
11635         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
11636         (s390_emit_prologue): Use it.
11637         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
11638         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
11639         hard-code register 14.
11640         * config/s390/s390-protos.h (s390_load_got): Declare.
11641
11642         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
11643         Support TImode constants.
11644         * config/s390/s390.md ("consttable_ti"): New.
11645         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
11646
11647         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
11648         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
11649         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
11650         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
11651         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
11652         New symbolic constants.
11653         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
11654         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
11655         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
11656         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
11657         symbolic UNSPEC values.
11658         * config/s390/s390.c (larl_operand, s390_short_displacement,
11659         bras_sym_operand, s390_cannot_force_const_mem,
11660         s390_delegitimize_address, s390_decompose_address,
11661         legitimize_pic_address, s390_output_symbolic_const,
11662         s390_function_profiler): Use symbolic UNSPEC values.
11663
11664 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11665
11666         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
11667         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
11668         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
11669         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
11670         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
11671         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
11672         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
11673         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
11674         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
11675         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
11676         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
11677         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
11678         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
11679         postreload.c prefix.c print-tree.c protoize.c ra-build.c
11680         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
11681         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
11682         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
11683         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
11684         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
11685         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
11686         casts.
11687
11688 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11689
11690         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
11691         * toplev.h (warning): Remove attribute.
11692
11693 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11694
11695         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
11696         (pop_label_level): Likewise.
11697         (duplicate_decls): Likewise.
11698         (implicitly_declare): Likewise.
11699         (shadow_label): Likewise.
11700         (start_decl): Likewise.
11701         (finish_decl): Likewise.
11702         (grokdeclarator): Likewise.
11703         (get_parm_info): Likewise.
11704         (detect_field_duplicates): Likewise.
11705         (finish_struct): Likewise.
11706         (start_function): Likewise.
11707         (store_parm_decls): Likewise.
11708         (finish_function): Likewise.
11709         (c_expand_body_1): Likewise.
11710         (check_for_loop_decls): Likewise.
11711         (merge_translation_unit_decls): Likewise.
11712
11713 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
11714
11715         * common.opt:  Document --param.
11716         * opts.c (columns, undocumented_msg): New.
11717         (print_help): Get number of columns from environment.  Print
11718         --param help.  Tweak newline handling.
11719         (print_param_help): New.
11720         (print_filtered_help): Better handling of duplicates.  Complain
11721         about undocumented switches.
11722         (print_switch): New.
11723         (wrap_help): Improve wrapping, use COLUMNS.
11724         * opts.sh: Ignore comments in records.
11725         * params.def: Fix typos and remove trailing periods.
11726         * toplev.c (display_help): Don't dump --param help.
11727         * doc/sourcebuild.texi: Update.
11728
11729 2003-07-18  Richard Henderson  <rth@redhat.com>
11730
11731         PR target/11556
11732         * optabs.c (prepare_operand): Fail gracefully instead of abort
11733         if the predicate doesn't satisfy.
11734         (gen_cond_trap): Allow prepare_operand to fail.
11735
11736 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11737
11738         * c-common.c: Don't undefine GCC_DIAG_STYLE.
11739         (fname_decl): Don't use xxx_with_decl.
11740         (c_add_case_label): Likewise.
11741         (handle_section_attribute): Likewise.
11742         (handle_alias_attribute): Likewise.
11743         (handle_no_instrument_function_attribute): Likewise.
11744         (handle_no_limit_stack_attribute): Likewise.
11745         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
11746         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
11747
11748 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11749
11750         * Makefile.in (ifcvt.o): Add cfgloop.h.
11751         * basic-block.h (EDGE_LOOP_EXIT): New flag.
11752         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
11753         * ifcvt.c: Include cfgloop.h.
11754         (mark_loop_exit_edges): New static function.
11755         (if_convert): Call it.
11756         (find_if_header): Ignore branches out of loops.
11757
11758 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
11759
11760         * combine.c (simplify_comparison): Don't share rtx when converting
11761         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
11762
11763 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
11764
11765         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
11766         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
11767         (MUST_PASS_IN_STACK): Define.
11768         (BLOCK_REG_PADDING): Define.
11769
11770 2003-07-18  Richard Henderson  <rth@redhat.com>
11771
11772         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
11773         to skip the addr_vec.
11774
11775 2003-07-18  Alexandre Oliva  <aoliva@redhat.com>
11776
11777         * combine.c (combinable_i3pat): Don't forbid occurrences of
11778         i2dest or i1dest in inner_dest if inner_dest is a mem.
11779
11780 2003-07-18  Jan Hubicka  <jh@suse.cz>
11781
11782         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
11783
11784 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
11785
11786         PR target/11087
11787         * loop.c (basic_induction_var): Check if convert_modes emitted any
11788         instructions. Remove them and return 0 if so.
11789
11790 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
11791
11792         PR optimization/11083
11793         * toplev.c (rest_of_handle_addresof): Rename into
11794         rest_of_handle_addressof.  Delete unreachable blocks
11795         if dead edges were purged after the addressof pass.
11796
11797 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
11798
11799         * Makefile.in, configure, configure.in: Remove handling of
11800         lang-options.h and options_.h.
11801         * toplev.c (struct lang_opt, documented_lang_options): Remove.
11802         (display_help): Don't use documented_lang_options.
11803
11804 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
11805
11806         * c-decl.c (pushdecl_function_level): Make static, return nothing.
11807         (kept_level_p): Fold into poplevel.
11808         (undeclared_variable): Moved here from c-typeck.c.  Export.
11809         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
11810         (undeclared_variable): Prototype here.  Don't prototype
11811         kept_level_p nor pushdecl_function_level.
11812         * c-parse.in: Change first argument to poplevel from
11813         "kept_level_p()" to "KEEP_MAYBE".
11814         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
11815
11816 2003-07-17  Roger Sayle  <roger@eyesopen.com>
11817
11818         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
11819         commutative operands instead of modifying the RTL in-place.
11820
11821 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
11822
11823         PR optimization/11557
11824         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
11825         unless we know which function is being called.
11826
11827 2003-07-17  Roger Sayle  <roger@eyesopen.com>
11828
11829         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
11830         whether to reorder the operands of a commutative binary operator.
11831
11832 2003-07-17  Roger Sayle  <roger@eyesopen.com>
11833
11834         * fold-const.c (const_binop): Avoid performing the FP operation at
11835         compile-time, if either operand is NaN and we honor signaling NaNs,
11836         or if we're dividing by zero and either flag_trapping_math is set
11837         or the desired mode doesn't support infinities.
11838         (fold_initializer): New function to fold an expression ignoring any
11839         potential run-time exceptions or traps.
11840         * tree.h (fold_initializer): Prototype here.
11841         * c-typeck.c (build_binary_op): Move to the end of the file so
11842         that intializer_stack is in scope.  If constructing an initializer,
11843         i.e. when initializer_stack is not NULL, use fold_initializer to
11844         fold expressions.
11845         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
11846         performing FP operations at compile-time, if they would raise an
11847         exception at run-time.
11848
11849 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
11850
11851         PR 11498
11852         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
11853         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
11854         (GTFILES): Add langhooks.c.
11855         (gt-langhooks.h): New.
11856         * c-common.h (c_static_assembler_name): Prototype.
11857         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
11858         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
11859         * c-opts.c: Include langhooks-def.h.
11860         (c_static_assembler_name): New.
11861         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
11862         (var_labelno): New.
11863         (lhd_set_decl_assembler_name): Give static objects with context
11864         unique names.
11865         * varasm.c (var_labelno): Delete.
11866         (make_decl_rtl): Don't change the assembler name once it's set.
11867
11868         * c-opts.c (this_input_filename): New.
11869         (finish_options): Take new parameter, name of file being compiled.
11870         Update callers.  Set this_input_filename.
11871         (push_command_line_include): Use this_input_filename not
11872         main_input_filename.
11873
11874 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
11875
11876         * Makefile.in: Depend .pot generation on options.c.
11877         * po/exgettext: Add an extra_files variable containing additional
11878         files to scan.
11879
11880 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
11881
11882         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
11883         c_write_global_declarations.
11884
11885         * c-decl.c: Fix typos in several comments.  Remove all
11886         #if 0 blocks; reindent as needed.  Remove unused argument
11887         to declare_parm_level; all callers changed.
11888         * c-parse.in: Update calls to declare_parm_level.  Avoid
11889         issuing a double warning in some circumstances.
11890         * c-typeck.c: Update calls to declare_parm_level.
11891         * c-tree.h: Update prototype of declare_parm_level.
11892
11893         * c-pragma.c (apply_pragma_weak): Don't complain about a
11894         redundant #pragma weak.
11895
11896         * objc/objc-act.c (forward_declare_categories,
11897         build_selector_reference_decl, build_class_reference_decl,
11898         build_objc_string_decl, synth_forward_declarations,
11899         build_protocol_reference): Set TREE_PUBLIC on synthetic
11900         forward decl to 0, consistent with eventual definition.
11901         Correct comments to match.
11902
11903         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
11904         in regexp that don't form a range expression.
11905         * fixinc/fixincl.def: Regenerate.
11906
11907 2003-07-17  Richard Henderson  <rth@redhat.com>
11908
11909         PR target/10907
11910         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
11911         even with !TARGET_CONST_GP.
11912         (ia64_function_ok_for_sibcall): Reject non-local functions.
11913
11914 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
11915
11916         * c-common.c (c_estimate_num_insns_1): Don't handle
11917         METHOD_CALL_EXPR.
11918         * expr.c (safe_from_p): Likewise.
11919         * gengtype.c (adjust_field_tree_exp): Likewise.
11920         * stmt.c (warn_if_unused_value): Likewise
11921         * tree.c (first_rtl_op): Likewise.
11922         * tree.def: Don't define METHOD_CALL_EXPR.
11923         * java/lang.c (java_estimate_num_insns_1): Don't handle
11924         METHOD_CALL_EXPR.
11925
11926 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11927
11928         PR other/11466
11929         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
11930         and its restrictions for the SPARC64 port.
11931         Move the entry of "-mimpure-text" before that of "-mv8".
11932
11933 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
11934             Phil Edwards <phil@jaj.com>
11935
11936         * doc/install.texi (*-*-solaris2*): Document the step-by-step
11937         procedure to bootstrap and install.
11938         Document the preference for the legacy Sun tools in /usr/bin
11939         over the POSIX tools in /usr/xpg4/bin for the build process.
11940
11941 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
11942
11943         * c.opt: Document Uncodumented; use it.  Document ObjC options.
11944         * opts.c (print_filtered_help): Skip undocumented switches.
11945         * opts.h (CL_UNDOCUMENTED): New.
11946         * opts.sh: Handle Undocumented.
11947         * toplev.c (documented_lang_options): Prevent its becoming empty.
11948 objc:
11949         * lang-options.h: Remove.
11950
11951 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
11952
11953         * loop.c (check_ext_dependent_givs): Pass const struct loop *
11954         instead of struct loop_info * as argument.  Accept BIVs with
11955         increment +/- 1 provided there is a friendly exit test against
11956         a loop-invariant value.
11957         (strength_reduce): Adapt call to check_ext_dependent_givs.
11958
11959 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
11960             Con Bradley <con.bradley@superh.com>
11961
11962         * sh-protos.h (sh_get_pr_initial_val): Declare.
11963         * sh.c (regno_reg_class): Make its elements type enum reg_class.
11964         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
11965         and live_regs_mask arguments.  Changed all callers.
11966         (save_schedule_s): New structure.
11967         (save_schedule): New typedef.
11968         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
11969         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
11970         In interrupts handlers, also save registers that are usually
11971         partially saved, and make sure there is at least one general purpose
11972         register saved if a target register needs saving.
11973         Add casts in comparisons to avoid warnings.
11974         (sh_media_register_for_return): return -1 for interrupt handlers.
11975         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
11976         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
11977         registers used are available.
11978         Set RTX_FRAME_RELATED_P where appropriate.
11979         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
11980         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
11981         (initial_elimination_offset): Likewise.
11982         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
11983         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
11984         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
11985         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
11986         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
11987         and for target registers.
11988         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
11989         (regno_reg_class): Make its elements type enum reg_class.
11990         (CONSTRAINT_LEN): Don't use isdigit.
11991         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
11992         (FUNCTION_ARG): Add parentheses to avoid warnings.
11993         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
11994         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
11995         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
11996         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
11997         * sh.md (xordi3+1): Remove unused variable regno.
11998         (return_media): Check that tr0 is available before using it.
11999
12000 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
12001
12002         * c.opt: Document more options.
12003
12004 2003-07-16  Roger Sayle  <roger@eyesopen.com>
12005
12006         * combine.c (subst): Also handle (subreg (const_double ...)) case
12007         if created by a substitution, by using the original inner mode.
12008
12009 2003-07-16  Roger Sayle  <roger@eyesopen.com>
12010
12011         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
12012         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
12013         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
12014
12015 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
12016
12017         * doc/install.texi (--without-headers): New.
12018
12019         Partial Fix PR/10129
12020         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
12021         (machopic_output_function_base_name): New; print the true pic label.
12022         (machopic_classify_ident): Pic Base is always a defined data.
12023         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
12024         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
12025
12026         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
12027         if they are not floating point registers.
12028
12029         PR c/10962
12030         * ggc.h: Add header guards.
12031         * c-decl.c (finish_struct): Sort fields if
12032         number greater than 15 and there are no
12033         anonymous structs/unions.
12034         * c-common.h: Include ggc.h.
12035         (sorted_fields_type): New struct.
12036         (field_decl_cmp): New prototype.
12037         (resort_sorted_fields): New prototype.
12038         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
12039         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
12040         as s, removing other fields.
12041         * c-typeck.c (lookup_field): Use s in lang_type.
12042         These were mostly moved from cp/class.c:
12043         * c-common.c (field_decl_cmp): New static function.
12044         (field_decl_cmp): New function.
12045         (resort_sorted_fields): New function.
12046
12047 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
12048
12049         * config/darwin.c (machopic_select_section): Use decl_readonly_section
12050         to do most of the work.
12051
12052 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
12053
12054         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
12055         * config/mmix/mmix.c: Convert functions to ISO C90.
12056         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
12057         formatting.
12058         (mmix_get_hard_reg_initial_val): Tweak section head comment.
12059
12060 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
12061
12062         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
12063
12064 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
12065
12066         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
12067         (uw_update_context_1): Use it.
12068         * config/rs6000/rs6000.c (insn_after_throw): Remove.
12069         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
12070         in parent frame if _Unwind_* called directly instead of through
12071         .plt.
12072         (rs6000_emit_eh_toc_restore): Remove.
12073         (rs6000_emit_prologue): Update stack pointer before doing any saving
12074         if current_function_calls_eh_return.  Generate unwind info for $r2.
12075         (rs6000_emit_epilogue): Restore stack pointer after doing all
12076         restoring if current_function_calls_eh_return.  Restore $r2.
12077         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
12078         * config/rs6000/rs6000.md (eh_return): Remove call to
12079         rs6000_emit_eh_toc_restore.
12080         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
12081         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
12082
12083 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
12084
12085         * expr.c (emit_block_move): Don't move anything if size is const 0.
12086         (clear_storage): Test against const0_rtx instead of comparing INTVAL
12087         against 0.
12088
12089 2003-07-15  David S. Miller  <davem@redhat.com>
12090
12091         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
12092         emit nop if the last real insn is CALL_INSN.
12093
12094 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
12095
12096         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
12097         as "nul".
12098         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
12099
12100 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
12101
12102         * config/i386/winnt.c (associated_type): Artificial methods are not
12103         affected by the import/export status of their class unless they are
12104         COMDAT.
12105         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
12106
12107         * config/i386/winnt.c: Fix GCC copyright comment.
12108
12109 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
12110
12111         PR c++/11531
12112         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
12113         not recursing on hard error.
12114         (diagnostic_for_decl): Likewise.
12115         * diagnostic.def: Rearrange.
12116
12117 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
12118
12119         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12120         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
12121
12122 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
12123             Richard Henderson  <rth@redhat.com>
12124
12125         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
12126         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
12127         (_Unwind_SetGR): Likewise.
12128         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
12129         (Unwind_SpTmp): New typedef.
12130         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
12131         (uw_update_context): Use _Unwind_GetPtr.
12132         (init_dwarf_reg_size_table): Move above uw_init_context_1.
12133         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
12134         Use _Unwind_SetSpColumn.
12135         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
12136         Use _Unwind_GetPtr.
12137
12138 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
12139
12140         * c.opt: Document more options.
12141         * toplev.c (documented_lang_options): Remove all local help strings.
12142
12143 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
12144
12145         PR debug/11473
12146         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
12147         base classes.
12148
12149 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
12150
12151         PR target/10795
12152         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
12153         swap comparison operands if doing so would generate an
12154         unrecognizable insn.
12155
12156 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
12157
12158         PR optimization/11320
12159         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
12160         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
12161         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
12162         current_sched_info->compute_jump_reg_dependencies. Record which
12163         registers are used and which registers are set by the jump.
12164         Clear deps->reg_conditional_sets after a barrier.
12165         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
12166         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
12167         (init_deps): Initialize reg_conditional_sets.
12168         (free_deps): Clear reg_conditional_sets.
12169         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
12170         Mark registers live on entry of the fallthrough block and conditionally
12171         set as set by the jump. Mark registers live on entry of non-fallthrough
12172         blocks as used by the jump.
12173         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
12174         Mark new parameters as unused.
12175
12176 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12177
12178         * doc/invoke.texi: Resync MIPS -march documentation.
12179
12180 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12181
12182         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
12183         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
12184         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
12185         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
12186         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
12187         (mips_issue_rate): Handle PROCESSOR_R9000.
12188         (mips_use_dfa_pipeline_interface): Likewise.
12189         * config/mips/9000.md: New file.
12190         * config/mips/mips.md: Include it.
12191         (define_attr cpu): Add r9000.
12192         (mulsi3_mult3): Use "mul" for rm9000 code.
12193
12194 2003-07-15  Stan Cox  <scox@redhat.com>
12195
12196         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
12197         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
12198         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
12199         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
12200         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
12201         (mips_issue_rate): Handle PROCESSOR_R7000.
12202         (mips_use_dfa_pipeline_interface): Likewise.
12203         * config/mips/7000.md: New file.
12204         * config/mips/mips.md: Include it.
12205         (define_attr cpu): Add r7000.
12206         (mulsi3_mult3): Use "mul" for rm7000 code.
12207
12208 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12209
12210         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
12211         the conditional move patterns.
12212         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
12213         Check for condmove type.
12214         (ir_vr54_arith): Add move type.
12215         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
12216         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
12217
12218 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
12219
12220         * c-opts.c (print_help): Remove.
12221         (c_common_handle_option): Don't handle --help.
12222         * c.opt: Document some options.
12223         (--help): Remove.
12224         * opts.c (print_filtered_help): New.
12225         (print_help): Use it.
12226
12227 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
12228
12229         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
12230         * tree.c: (build_common_tree_nodes_2): Likewise.
12231         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
12232         (V4DF_type_node): New.
12233
12234         * c-opts.c (push_command_line_include): Don't free deferred_opts,
12235         we'll need it.
12236         (finish_options): Reset init_cursor.
12237
12238 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
12239
12240         * expr.c (expand_assignment): Remove an unused argument
12241         SUGGEST_REG.
12242         * expr.h: Update the prototype.
12243         * function.c: Update the callers.
12244         * stmt.c: Likewise.
12245
12246 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
12247
12248         PR debug/11098
12249         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
12250         as DECL_ABSTRACT.
12251
12252 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12253
12254         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
12255         with __cplusplus, not "we must use the C++ compiler's type"
12256         * fixinc/inclhack.def (void_null): Note that Interix needs this.
12257         * fixinc/fixincl.x: Regenerate.
12258
12259 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
12260
12261         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
12262         and unseen_objects from the global data before calling
12263         __deregister_frame_info_bases.
12264         (examine_objects): Insert objects into the seen_objects list,
12265         not unseen_objects.
12266         (_Unwind_Find_FDE): Always unlock the global object lists, even if
12267         we couldn't allocate a data structure to put in it.
12268
12269         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
12270         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
12271         (SET_TYPE_PROTOCOL_LIST): New.
12272         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
12273         (get_object_reference): Likewise.
12274
12275 2003-07-14  Jan Hubicka  <jh@suse.cz>
12276
12277         * cfglayout.c (locator_file): Break out from ....
12278         (insn_file): ... here.
12279         (locator_line): Break out from ....
12280         (insn_line): ... here.
12281         * rtl.h (locator_file, locator_line): Declare.
12282         (final_start_function): Set proper line/file info.
12283
12284 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12285
12286         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
12287         handled by pp_c_cast_expression.
12288
12289 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12290
12291         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
12292         allocate 32768 bytes of stack.  Use addition rather than subtraction
12293         when a single insn is enough.
12294         * config/mips/mips.md: Remove insns and splitters for subtracting
12295         constants.
12296         (subsi3): Only accept register operands.
12297         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
12298         (subdi3_internal_3, subsi3_internal_2): Likewise.
12299         (casesi): Use expand_binop to subtract the lower bound.
12300
12301 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12302
12303         * config/mips/mips.c (mips_in_small_data_p): Don't handle
12304         TARGET_MIPS16 specially.
12305
12306 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12307
12308         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
12309         mips_output_aligned_bss.
12310         * config/mips/linux.h: Likewise.
12311         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
12312         * config/mips/mips.c (mips_output_aligned_bss): New function.
12313
12314         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
12315         * config/mips/elf64.h: Likewise.
12316
12317         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
12318         mips_declare_object_name.
12319         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
12320         * config/mips/elf64.h: As for elf.h.
12321         * config/mips/iris6.h: Likewise.
12322         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
12323         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
12324         do...while (0) block.
12325         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
12326         (mips_finish_declare_object): Declare.
12327         * config/mips/mips.c (mips_declare_object_name): New function.
12328         (mips_finish_declare_object): New function.
12329
12330         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
12331         * config/mips/linux.h: Likewise.
12332
12333         * config/mips/mips.c (inside_function): Delete.
12334         (file_in_function_warning, ignore_line_number): Delete.
12335         (mips_output_filename): Don't warn about changing filenames within
12336         a function.
12337         (mips_output_lineno): Update accordingly.
12338         (mips_output_function_prologue): Don't reset the deleted variables.
12339         * config/mips/mips.h (inside_function): Delete.
12340         (file_in_function_warning, ignore_line_number): Delete.
12341
12342         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
12343         * config/mips/elf64.h: Likewise.
12344         * config/mips/openbsd.h: Likewise.
12345         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
12346         * config/mips/linux.h: Likewise.
12347         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
12348         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
12349
12350         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
12351         to the list of include files when using gas.
12352         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
12353         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
12354         * config/mips/elf64.h: Likewise.
12355         * config/mips/iris5.h: Likewise.
12356         * config/mips/linux.h: Likewise.
12357         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
12358         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12359         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
12360         * config/mips/sdb.h: ...this new file.
12361
12362 2003-07-14  Douglas Rupp  <rupp@gnat.com>
12363
12364         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
12365         argument to getcwd; use fixed buffer instead.
12366
12367 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12368
12369         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
12370         * fixinc/fixinc.wrap: Delete.
12371
12372 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
12373
12374         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
12375         don't have 2.
12376
12377 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
12378
12379         * ggc-page.c (struct globals): Add new fields to keep track of the
12380         total allocated memory and overhead.
12381         (ggc_print_statistics): Print them.
12382         (ggc_alloc): Keep track of the total allocated memory and the
12383         overhead.
12384
12385         * tree.c (dump_tree_statistics): Increase spacing.
12386         (enum tree_node_kind): Move to ...
12387         * tree.h (enum tree_node_kind): ... here.
12388         (tree_node_counts, tree_node_sizes): Declare.
12389
12390 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
12391
12392         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
12393
12394 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12395
12396         PR optimization/11440
12397         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
12398         SIGN_EXTRACT SETs.
12399
12400 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
12401
12402         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
12403         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
12404         (emit_group_load, emit_group_store): Adjust declarations.
12405         Remove most occurrences of #ifdef TREE_CODE.
12406         * expr.c (emit_group_load): Add "type" param, and use
12407         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
12408         aligned accesses if !SLOW_UNALIGNED_ACCESS.
12409         (emit_group_store): Likewise.
12410         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
12411         emit_group_load and emit_group_store calls.
12412         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
12413         BLOCK_REG_PADDING to determine whether we need endian_correction.
12414         (load_register_parameters): Localize vars.  Handle shifting of
12415         small values to the correct end of regs.  Adjust emit_group_load
12416         call.
12417         (expand_call, emit_library_call_value_1): Adjust emit_group_load
12418         and emit_group_store calls.
12419         * function.c (assign_parms): Set mem alignment for stack slots.
12420         Adjust emit_group_store call.  Store values at the "wrong" end
12421         of regs to the stack.  Use BLOCK_REG_PADDING.
12422         (locate_and_pad_parm): Save where_pad.
12423         (expand_function_end): Adjust emit_group_load call.
12424         * stmt.c (expand_value_return): Adjust emit_group_load call.
12425         * Makefile.in (calls.o): Depend on $(OPTABS_H).
12426         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
12427         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12428         (MUST_PASS_IN_STACK): Define.
12429         (BLOCK_REG_PADDING): Define.
12430         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
12431         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
12432         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
12433         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
12434         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
12435
12436 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
12437
12438         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
12439
12440 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12441
12442         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
12443         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
12444
12445 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12446
12447         PR other/11123
12448         * toplev.c: Don't cut off option names.
12449
12450 2003-07-13  Andreas Jaeger  <aj@suse.de>
12451
12452         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
12453         to integer of different size.
12454
12455 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
12456
12457         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
12458         to (eq (and X 1) 0).
12459
12460 2003-07-13  Andreas Jaeger  <aj@suse.de>
12461
12462         * config.gcc: Add pmmintrin.h for x86_64-*-*.
12463
12464 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
12465
12466         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
12467         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
12468         list.  Move these all together down by cpplib.
12469
12470         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
12471         definition of CPPCHAR_SIGNED_T.
12472
12473         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
12474         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
12475         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
12476
12477         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
12478         * cppinit.c (cpp_create_reader): Likewise.
12479
12480         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
12481         * cpptrad.c: Likewise.  All callers changed.
12482         * cpplib.c: All callers changed.
12483         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
12484         * hashtable.h: Define GTY(x) to nothing here too.
12485
12486 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12487
12488         * stor-layout.c (compute_record_mode): Remove very obsolete test
12489         that forces BLKmode for records with fields crossing word boundary.
12490
12491 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
12492
12493         * Makefile.in: Remove orphan reference to acconfig.h.
12494
12495 2003-07-13  Andreas Jaeger  <aj@suse.de>
12496
12497         * cgraphunit.c: Convert prototypes to ISO C90.
12498
12499 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12500
12501         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
12502         (for OpenBSD).
12503         * fixinc/fixincl.x: Rebuild.
12504
12505 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
12506
12507         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
12508         i?86-*-*.  Use correct name of cache variable.
12509         * configure: Regenerate.
12510
12511 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
12512
12513         * config/alpha/alpha.c: Fix comment typos.
12514         * config/alpha/alpha.md: Likewise.
12515         * config/arm/arm.c: Likewise.
12516         * config/arm/arm.md: Likewise.
12517         * config/arm/lib1funcs.asm: Likewise.
12518         * config/avr/avr.md: Likewise.
12519         * config/arm/README-interworking: Fix typos.
12520
12521 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
12522
12523         * c-format.c: Fix comment formatting.
12524         * c-typeck.c: Likewise.
12525         * coverage.c: Likewise.
12526         * cppcharset.c: Likewise.
12527         * cpplib.c: Likewise.
12528         * dbxout.c: Likewise.
12529         * gcov-io.h: Likewise.
12530         * toplev.c: Likewise.
12531
12532 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
12533
12534         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
12535         fix.
12536
12537 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
12538
12539         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
12540         uses three-argument AC_DEFINE so no acconfig.h entries are
12541         needed.
12542         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
12543         which contains the GAS version number as a scaled integer.
12544         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
12545         ability to check for ELF assembler.
12546         (gcc_GAS_CHECK_FEATURE): New macro.
12547         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
12548         assembler feature checks using gcc_GAS_CHECK_FEATURE.
12549         Use three-argument AC_DEFINE everywhere.
12550         * acconfig.h: Deleted.
12551         * config.in, configure: Regenerate.
12552
12553 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
12554
12555         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
12556         (on OpenBSD).
12557         * fixinc/fixincl.x: Regenerate.
12558
12559         * fixinc/inclhack.def (gnu_types): Improve comment.
12560
12561 2003-07-12  Andreas Jaeger  <aj@suse.de>
12562
12563         * fp-test.c (main): Use ISO C90 prototype.
12564
12565         * version.c: Remove unneded include of ansidecl.h.
12566
12567         * cgraph.h: Convert prototypes to ISO C90.
12568         * cgraph.c: Likewise.
12569         * fix-header.c: Likewise.
12570         * ra.h: Likewise.
12571         * protoize.c: Likewise.
12572
12573 2003-07-12  Jan Hubicka  <jh@suse.cz>
12574
12575         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
12576         warning.
12577
12578 2003-07-12  Jan Hubicka  <jh@suse.cz>
12579                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12580
12581         * cgraph.c (cgraph_max_uid): New global variable.
12582         (cgraph_node): Set uid field.
12583         (create_edge): Keep inline flags consistent.
12584         (dump_cgraph): Dump more info.
12585         * cgraph.h (struct cgraph_local_info): Remove inline_many and
12586         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
12587         (struct cgraph_global_info): Add insns, calls, cloned_times,
12588         will_be_output.
12589         (struct cgraph_node): Add uid.
12590         (struct cgraph_edge): Add inline_call.
12591         (cgraph_max_uid, cgraph_inline_p): Declare.
12592         * cgraph.c: Include params.h and fibheap.h
12593         (cgraph_mark_functions_to_inline_once): Kill.
12594         (INSNS_PER_CALL): New constant.
12595         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
12596         static variables.
12597         (cgraph_finalize_function): Do not analyze inlining.
12598         (cgraph_finalize_compilation_unit): Set inlining attributes.
12599         (cgraph_mark_functions_to_output): More consistency checks.
12600         (cgraph_optimize_function): Set current_function_decl to NULL.
12601         (cgraph_expand_function): Use new inline flags.
12602         (cgraph_postorder): Expand from cgraph_expand_functions.
12603         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
12604         (cgraph_inlined_into, cgraph_inlined_callees,
12605         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
12606         cgraph_mark_inline, cgraph_check_inline_limits,
12607         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
12608         cgraph_decide_inlining, cgraph_inline_p): New functions.
12609         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
12610         PARAM_INLINE_UNIT_GROWTH): New parameters.
12611         * tree-inline.c (struct inline_data): New field current_decl.
12612         (expand_call_inline): Avoid forward declarations; use
12613         inlinable_function_p.
12614         (optimize_inline_calls): Set id.current_decl.
12615
12616 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
12617
12618         * configure.in: Remove wrongly added definition of
12619         local_prefix.
12620         * configure: Regenerate.
12621
12622 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
12623
12624         * rtl.def (NOTE): Do not use padding.
12625
12626 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
12627
12628         * doc/install.tex: Update required binutils for i?86-*-linux*
12629
12630 2003-07-11  Richard Henderson  <rth@redhat.com>
12631
12632         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
12633
12634 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
12635
12636         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
12637         TRANSLATION_UNIT_DECL as top_level.
12638
12639 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
12640
12641         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
12642         then fall back to cmpstrM.
12643         * builtins.c (expand_builtin_memcmp): Likewise.
12644         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
12645         (s390_expand_cmpmem): ... this.
12646         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
12647         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
12648         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
12649         to s390_expand_cmpmem.
12650         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
12651         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
12652         to cmpmem*.
12653         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
12654         cmpstr* patterns.
12655         * doc/md.texi (cmpstrM): Describe as String compare insn, not
12656         Block compare insn.
12657         (cmpmemM): Add.
12658
12659 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
12660
12661         * config/i386/freebsd.h (SET_ASM_OP): Remove.
12662         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
12663         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
12664          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
12665
12666 2003-07-11  Richard Henderson  <rth@redhat.com>
12667
12668         * function.c (assign_parms): Don't recombine complex args if
12669         fnargs is unchanged from orig_fnargs.
12670         (split_complex_args): Return args without complex before copying.
12671         Re-layout the modified parameters.
12672
12673 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
12674
12675         * regclass.c (choose_hard_reg_mode): Add third argument.
12676         Changed all callers.
12677         * rtl.h (choose_hard_reg_mode): Update declaration.
12678         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12679         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
12680
12681 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
12682
12683         * c-decl.c (finish_decl): Handle 'used' here...
12684         * cgraphunit.c (cgraph_finalize_function): ... and here ...
12685         * c-common.c: (handle_used_attribute): ... not here.
12686
12687         * configure.in (onstep): Support --enable-intermodule.
12688         * Makefile.in (OBJS-common): New.
12689         (OBJS-md): New.
12690         (OBJS-archive): New.
12691         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
12692         (OBJS-onestep): New.
12693         (libbackend.a): Support @onestep@.
12694         (libbackend.o): New.
12695         * configure: Regenerate.
12696
12697         * c-common.h (c_reset_state): New prototype.
12698         (c_parse_file): New prototype.
12699         (finish_file): Move prototype from c-tree.h.
12700         * c-decl.c: Include <hashtab.h>.
12701         (builtin_decls): New.
12702         (current_file_decl): New.
12703         (duplicate_decls): Add extra parameter. Change all callers.  Don't
12704         output duplicate common symbols.
12705         (link_hash_hash): New.
12706         (link_hash_eq): New.
12707         (poplevel): Handle popping of the top level.
12708         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
12709         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
12710         (pushdecl_top_level): Likewise.
12711         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
12712         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
12713         (finish_decl): Handle TRANSLATION_UNIT_DECL.
12714         (merge_translation_unit_decls): New.
12715         (c_write_global_declarations): New.
12716         (c_reset_state): New.
12717         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
12718         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
12719         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
12720         TRANSLATION_UNIT_DECL.
12721         (c_objc_common_finish_file): Call merge_translation_unit_decls.
12722         * c-opts.c (in_fnames): Rename from in_fname.
12723         (c_common_decode_option): Handle multiple input filenames.
12724         (c_common_post_options): Likewise.
12725         (c_common_parse_file): Likewise; also, call c_parse_file rather than
12726         yyparse.
12727         * c-parse.in: Move cleanup code to c_parse_file.
12728         (free_parser_stacks): Move contents to c_parse_file.
12729         (c_parse_file): New.
12730         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
12731         for integer types.
12732         (C_DECL_FILE_SCOPE): New.
12733         (finish_file): Move prototype to c-common.h.
12734         (merge_translation_unit_decls): New prototype.
12735         (comptypes): Add extra parameter to prototype.
12736         (c_write_global_declarations): New prototype.
12737         * c-typeck.c (tagged_types_tu_compatible_p): New.
12738         (function_types_compatible_p): Add extra parameter, change all callers.
12739         (type_lists_compatible_p): Likewise.
12740         (comptypes): Likewise.
12741         (struct tagged_tu_seen): New.
12742         (tagged_tu_seen_base): New.
12743         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
12744         (c_mark_addressable): Remove #if 0 code.
12745         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
12746         comment explaining why it shouldn't have to.
12747         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
12748         options.
12749         * cppinit.c (cpp_read_next_file): New.
12750         (cpp_read_main_file): Use it.
12751         * cpplib.c (undefine_macros): New.
12752         (cpp_undef_all): New.
12753         * cpplib.h (cpp_read_next_file): Prototype.
12754         (cpp_undef_all): Prototype.
12755         * langhooks-def.h (write_global_declarations): Remove prototype.
12756         * toplev.h (write_global_declarations): Add prototype.
12757         * tree.c (decl_type_context): Use switch statement, handle
12758         TRANSLATION_UNIT_DECL.
12759         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
12760         (TRANSLATION_UNIT_DECL): New kind of tree.
12761         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
12762         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
12763         * doc/invoke.texi: Make attempt to document new functionality.
12764
12765         2003-05-19  Per Bothner <bothner@apple.com>
12766
12767         * gcc.c (combine_inputs): New.
12768         (process_command): Set combine_inputs.
12769         (do_spec_1): Handle combine_inputs.
12770         (main): Likewise.
12771
12772 2003-07-10  James E Wilson  <wilson@tuliptree.org>
12773
12774         PR optimization/9745
12775         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
12776         loop_insn_emit_before.
12777         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
12778
12779 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
12780
12781         * cppcharset.c: Fix comment.
12782         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
12783         (EILSEQ): #define to EINVAL if not already defined.
12784         (convert_using_iconv): #if out when !HAVE_ICONV.
12785         (init_iconv_desc): Handle !HAVE_ICONV here...
12786         (cpp_init_iconv): ...not here.
12787
12788 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
12789
12790         * common.opt: More --help messages.
12791         * opts.c (print_help): Use puts().
12792         * toplev.c (f_options): Remove help text.
12793         (display_help): Don't dump f_options.
12794
12795 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
12796
12797         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
12798         Move i?86-*-interix* to the don't-fix list.
12799         * fixinc/fixinc.interix: Delete with extreme prejudice.
12800
12801 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
12802
12803         PR bootstrap/10758
12804         * doc/install.texi: Document requirements for ia64-*-hpux* target.
12805
12806 2003-07-10  Roger Sayle  <roger@eyesopen.com>
12807
12808         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
12809
12810 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
12811
12812         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
12813         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
12814         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
12815         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
12816         convert_no_conversion, convert_using_iconv): New functions.
12817         (APPLY_CONVERSION): New macro.
12818         (struct conversion, conversion_tab): New data structure.
12819         (init_iconv_desc): Check conversion_tab for a custom conversion
12820         primitive before trying to use iconv.
12821         (convert_cset): Deleted.
12822         (cpp_init_iconv): Use UTF- terminology, not UCS-.
12823         (_cpp_destroy_iconv): Update to match.
12824         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
12825         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
12826         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
12827         (_cpp_interpret_string_notranslate): New function, moved here
12828         from cpplib.c.
12829
12830         * cpphash.h (convert_f, struct cset_converter): New types.
12831         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
12832         are now struct cset_converter, not bare iconv_t.
12833         Update prototypes.
12834         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
12835         all callers changed.
12836
12837 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
12838
12839         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
12840         to opts.sh command line.
12841         * opts.sh: Write to temporary files with a move-if-change at the end.
12842
12843 2003-07-10  Denis Chertykov  <denisc@overta.ru>
12844             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12845
12846         * combine.c (gen_binary): Handle the CLOBBER rtx and
12847         don't build a binary operation with it.
12848
12849 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12850
12851         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
12852         store_killed_after, store_killed_before): Keep track of the correct
12853         dependency function to use.
12854
12855 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
12856         * toplev.c (do_compile): Don't try to open dump files before
12857         lang_dependent_init initializes dump_base_name.
12858
12859 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12860
12861         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
12862         Use ARRAY_SIZE.
12863         * config/frv/frv.c (frv_expand_builtin): Likewise.
12864         * config/sh/sh.c (sh_media_init_builtins): Likewise.
12865
12866 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
12867
12868         PR c++/10032
12869         * doc/invoke.texi (C++ Dialect Options): Change documentation of
12870         -fpermissive.
12871
12872 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
12873
12874         * tm.texi (RETURN_ADDR_OFFSET): Document.
12875
12876 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
12877
12878         * gcov-io.h: Update documentation.
12879         (GCOV_UNSIGNED2STRING): New.
12880         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
12881         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
12882         GCOV_TAG_SUMMARY_LENGTH): Adjust.
12883         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
12884         GCOV_TAG_COUNTER_NUM): New.
12885         (GCOV_BLOCK_SIZE): Number of words.
12886         (gcov_var): Adjust buffer type.
12887         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
12888         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
12889         count, not byte count.
12890         (gcov_open): Adjust overread init.
12891         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
12892         gcov_write_string, gcov_write_tag, gcov_write_length,
12893         gcov_write_tag_length): Adjust.
12894         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
12895         (gcov_sync, gcov_seek): Adjust.
12896         * gcov-dump.c (print_usage): Show gcc version only.
12897         (dump_file): Use GCOV_UNSIGNED2STRING.
12898         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
12899         * gcov.c (print_version): Show gcc version only.
12900         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
12901         GCOV_TAG_*_NUM macros.
12902         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
12903         GCOV_TAG_COUNTER_LENGTH.
12904         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
12905         Use GCOV_TAG_COUNTER_NUM.
12906         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
12907         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
12908
12909 2003-07-10  Andreas Schwab  <schwab@suse.de>
12910
12911         * gcov-dump.c (dump_file): Fix missing address operator.
12912
12913 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
12914
12915         PR c/11449
12916         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
12917         of HOST_WIDE_INT.
12918         (fold_single_bit_test): If sign_bit_p() fails, assume that the
12919         bit being tested is not a sign bit.
12920
12921 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
12922
12923         * config/h8300/h8300.md (a peephole2): New.
12924
12925 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
12926
12927         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
12928         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
12929         from ld-linux.so.2 to ld.so.1.
12930         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
12931         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
12932         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
12933         nor -Wl,-rpath-link.
12934         (LIB_SPEC): Add -rpath-link if !static.
12935         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
12936         * config/mn10300/mn10300.c (mn10300_protect_label): New
12937         variable.
12938         * config/mn10300/linux.h (PRINT_OPERAND,
12939         PRINT_OPERAND_ADDRESS): Set it during their execution.
12940         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
12941         mn10300_protect_label is set.
12942         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
12943         -Wl,-rpath-link.
12944         (LIB_SPEC, STARTFILE_SPEC): Define.
12945         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
12946         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
12947         FLOAT_BIT_ORDER_MISMATCH.
12948         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
12949         * config.gcc (am33_2.0-*-linux*): Added.
12950         * config/mn10300/linux.h: New.
12951         * config/mn10300/t-linux: New.
12952
12953 2003-07-10  Andreas Jaeger  <aj@suse.de>
12954
12955         * fold-const.c: Properly wrap prototypes.
12956
12957 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
12958
12959         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
12960         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
12961         Moved from...
12962         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
12963         * config/mn10300/mn10300.h: GTY-declare it.
12964         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
12965         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
12966         prototype.  Use incoming RTL argument.
12967         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
12968         * config/mn10300/mn10300.md (int_label): Move C statements...
12969         (GOTaddr2picreg): ... here.
12970         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
12971         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
12972         * config/mn10300/mn10300.c (mn10300_encode_section_info):
12973         ... here.  New function.
12974         (TARGET_ENCODE_SECTION_INFO): Define to it.
12975         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
12976         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
12977         pattern name.
12978         (mn10300_loadPC): Define as insn splittable after reload.
12979         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
12980         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
12981         be defined in .rodata even in PIC, now that the assembler
12982         supports that.
12983         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
12984         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
12985         symbol take an underscore prefix.
12986         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12987         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
12988         legitimize_pic_address): Declare.
12989         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
12990         the PIC register as fixed.
12991         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
12992         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
12993         PIC.
12994         (LEGITIMATE_PIC_OPERAND_P): Define.
12995         (PIC_OFFSET_TABLE_REGNUM): Define.
12996         (GOT_SYMBOL_NAME): Define.
12997         (SYMBOLIC_CONST_P): Define.
12998         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
12999         symbols.
13000         (MN10300_GLOBAL_P): Test it.
13001         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
13002         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
13003         * config/mn10300/mn10300.c (print_operand): Handle unspec.
13004         (expand_prologue): Set PIC register.
13005         (call_address_operand): Don't match SYMBOL_REFs in PIC.
13006         (legitimize_address): Call legitimize_pic_address.
13007         (legitimize_pic_address): New fn.
13008         (legitimate_pic_operand_p): New fn.
13009         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
13010         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
13011         UNSPEC_PLT): New constants.
13012         (pop_pic_reg): New insn.
13013         (movsi): Adjust non-PIC addresses.
13014         (builtin_setjmp_receiver): Restore the PIC register.
13015         (casesi): New insn.
13016         (call): Adjust non-PIC addresses.
13017         (int_label, GOTaddr2picreg): New expands.
13018         (am33_loadPC): New insn.
13019         (mn10300_loadPC): New expand.
13020         (call_next_insn): New insn.
13021         (add_GOT_to_pic_reg): New expand.
13022         (symGOT2reg, symGOT2reg_i): New expands.
13023         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
13024         (sym2PIC, sym2PLT): New expands.
13025
13026 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
13027
13028         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
13029         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
13030         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
13031         to flag_unsafe_math_optimizations.
13032         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
13033         * config/mn10300/mn10300.c (expand_prologue): Mark
13034         FP-register-saving insns as frame-related.
13035         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
13036         * config/mn10300/mn10300.c
13037         (mn10300_get_live_callee_saved_regs): Don't search past
13038         LAST_EXTENDED_REGNUM.
13039         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
13040         * config/mn10300/mn10300.md: Remove excessive line breaks from
13041         `@' output patterns that were accounted as additional
13042         alternatives.
13043         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
13044         Re-introduce changes accidentally removed in Richard Sandiford's
13045         2000-12-05's patch.
13046         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
13047         Re-instate am33-2 lost in merge from net GCC.
13048         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
13049         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
13050         floating-point registers.
13051         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
13052         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
13053         pessimizations that had gone in on 2000-05-08.
13054         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
13055         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
13056         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
13057         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
13058         operand 0.
13059         * (movhi): Likewise.
13060         * (movsi): Likewise.
13061         * (movsf): Likewise.
13062         * (movdi): Likewise.
13063         * (movdf): Likewise.
13064         2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
13065         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
13066         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
13067         (expand_prologue, expand_epilogue): Save and restore FP regs.
13068         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
13069         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
13070         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
13071         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
13072         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
13073         Do not clobber cc0.
13074         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
13075         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
13076         Discourage the two-argument, longer opcodes.
13077         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
13078         ones.
13079         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
13080         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
13081         * config/mn10300/mn10300.md (cmpsf): New pattern.
13082         (branch): Test mdep.fpCC and output fbCC.
13083         * config/mn10300/mn10300.c (print_operand): Output conditions.
13084         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
13085         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
13086         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
13087         mulsf3, divsf3): Use the `F' constraint for FP values.
13088         * config/mn10300/mn10300.c (const_1f_operand): New function.
13089         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
13090         * config/mn10300/mn10300.md (sqrtsf2): New expand.
13091         (rsqrtsf2): New insn.
13092         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
13093         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
13094         previous check-in.
13095         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
13096         * config/mn10300/mn10300.md (abssf2, negdf2): On
13097         TARGET_AM33_2, expand to...
13098         (abssf2_am33_2, negdf2_am33_2): New insns.
13099         (addsf3, subsf3, mulsf3, divsf3): Likewise.
13100         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
13101         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
13102         movdi, movdf): Added FP regs.
13103         * invoke.texi (-mam33-2, -mno-am33-2): Document.
13104         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
13105         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
13106         New macros.
13107         (REGNO_AM33_2_FP_P): Renamed to...
13108         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
13109         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
13110         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
13111         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
13112         regs from GENERAL_REGS.
13113         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
13114         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
13115         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
13116         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
13117         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
13118         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
13119         as FP_REGS.
13120         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
13121         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
13122         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
13123         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
13124         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
13125         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
13126         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
13127         AM33/2.0 floating-point registers.
13128         (CONDITIONAL_REGISTER_USAGE): Adjust.
13129         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
13130         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
13131         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
13132         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
13133         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
13134         (MULTILIB_DIRNAMES): Likewise.
13135         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
13136         `__AM33_2__' when `-mam33-2' is given.
13137         (TARGET_AM33_2): Define.
13138         (TARGET_SWITCHES): Adjust.
13139         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
13140         when appropriate.
13141
13142 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
13143
13144         * doc/install.texi: Add missing @.
13145
13146 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
13147
13148         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
13149
13150 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
13151
13152         PR/11144
13153         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
13154
13155 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
13156
13157         PR bootstrap/11043
13158         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
13159         "x-crtfini.o" with "crtinit.o", "crtfini.o".
13160
13161         * fixinc/inclhack.def (limits_ifndefs): Add select test.
13162         * fixinc/fixincl.x: Rebuild.
13163
13164         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
13165         * fixinc/fixincl.x: Rebuild.
13166
13167 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
13168
13169         * doc/install.texi (Configuration): Document the valgrind option
13170         to --enable-checking.
13171
13172 2003-07-09  Jan Hubicka  <jh@suse.cz>
13173
13174         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13175
13176 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13177
13178         * c-lex.c (cb_ident): Cast cstr.text to const char *.
13179
13180 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
13181
13182         * gcov-io.h: Update documentation.
13183         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
13184         GCOV_NOTE_MAGIC.
13185         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
13186         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
13187         (struct gcov_var): Change buffer's type. Add endian flag.
13188         (gcov_open): Remove mode in libgcov.
13189         (gcov_magic): Prototype.
13190         * gcov-io.c (from_file): New.
13191         (gcov_open): Clear endian flag.
13192         (gcov_magic): New.
13193         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
13194         pointers.
13195         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
13196         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
13197         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
13198         * gcov-iov.c (main): Correct cast.
13199         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
13200         conversion.
13201         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
13202         (coverage_init): Use GCOV_NOTE_SUFFIX.
13203         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
13204         Rename to gcov_version, and return flag.
13205         (gcov_exit): Use gcov_version.
13206         (__gcov_init): Use gcov_version.
13207         * Makefile.in (coverageexts): Update.
13208         * gcov.c (print_version): Remove endianness conversion.
13209         (create_file_names): Use GCOV_NOTE_SUFFIX.
13210         (read_graph_file): Use gcov_magic.
13211         (read_count_file): Likewise.
13212         * gcov-dump.c (dump_file): Remove endianness conversion, use
13213         gcov_magic.
13214
13215 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
13216
13217         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
13218         coverage is on.
13219         * configure: Regenerated.
13220         * Makefile.in (ALL_CFLAGS): Correct its comment.
13221
13222 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
13223
13224         * fold-const.c (make_range): Do not access operand 1 for a
13225         zero-operand operator.
13226
13227 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
13228
13229         * toplev.c (warn_dummy, W_options): Die.
13230         (display_help): Don't print W_options.
13231         * common.opt: Add W_options help from toplev.c.
13232
13233 2003-07-09  Andreas Jaeger  <aj@suse.de>
13234
13235         * opts.c (wrap_help): Only pass int arguments as arguments to
13236         printf's '*' modifier.  Change argument of function.
13237
13238 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
13239
13240         * doc/invoke.texi: Fix misspelling of "@item".
13241
13242 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
13243
13244         * config/i386/i386.md: Remove an old comment about
13245         NOTICE_UPDATE_CC.
13246
13247 2003-07-09  Jan Hubicka  <jh@suse.cz>
13248
13249         * cgraph.c (cgraph_node_name): New function.
13250         (dump_cgraph): Use it.
13251         * cgraph.h (cgraph_dump_file): Declare.
13252         (cgraph_node_name): Declare.
13253         * cgraphunit.c: Include timevar.h
13254         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
13255         (cgraph_optimize_function): Use TV_INTEGRATION.
13256         (cgraph_mark_local_functions): reorganize dumps.
13257         (cgraph_mark_functions_to_inline_once): Likewise.
13258         (cgraph_optimize): Likewise; use timevar.
13259         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
13260         * toplev.c (dump_file_index): Add DFI_cgraph.
13261         (dump_file_info): Likewise.
13262         (cgraph_dump_file): New global variable.
13263         (do_compile): Open and close cgraph dump.
13264         * invoke.texi (-d): Document new flag; renumber.
13265
13266 2003-07-08  Roger Sayle  <roger@eyesopen.com>
13267
13268         PR c/11370
13269         * calls.c (emit_call_1): Don't bother popping the arguments off of
13270         the stack after a noreturn function call;  The adjustment is dead.
13271         (expand_call): Likewise.
13272
13273 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
13274
13275         * expr.c (MOVE_MAX_PIECES): Move from here...
13276         * defaults.h (MOVE_MAX_PIECES): ... to here.
13277
13278 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
13279
13280         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
13281
13282 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13283
13284         * genattr.c (internal_dfa_insn_code): Don't prototype.
13285         * genattrtab.c (attr_desc): Add `static_p' field.
13286         (expand_units): Make blockage range and ready cost functions
13287         static.
13288         (write_attr_get): Don't add extern prototypes in C file.  Mark
13289         static functions as appropriate.
13290         (find_attr, make_internal_attr): Initialize static_p.
13291         * genattrtab.h (ATTR_STATIC): New macro.
13292         * genautomata.c (output_internal_reset_func): Mark output function
13293         as inline.
13294         (make_internal_dfa_insn_code_attr): Mark output function as static.
13295
13296 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13297
13298         * genattrtab.h: Add new macros for attr `special' flags.
13299         * genattrtab.c (attr_desc): Reorder/resize fields better.
13300         Use attr `special' macros in all calls to make_internal_attr.
13301         * genautomata.c: Likewise.
13302
13303 2003-07-09  Jan Hubicka  <jh@suse.cz>
13304
13305         * c-common.c (c_estimate_num_insns_1): New static function.
13306         (c_estimate_num_insns): New global function.
13307         * c-common.h (DECL_NUM_STMTS): Rename to...
13308         (DECL_ESTIMATED_INSNS): ... this.
13309         (c_estimate_num_insns): Declare.
13310         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
13311         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13312         * c-semantics.c (add_stmt): Do not account statements.
13313         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
13314         New.
13315         * langhooks.h (lang_hooks_for_tree_inlining): Add
13316         estimate_num_insns
13317         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
13318         to 100.
13319         (max-inline-insns): set to 300.
13320         (min-inline-insns): set to 10.
13321         * tree-inline.c (struct inline_data): Rename inlined_stmts to
13322         inlined-insns.
13323         (INSNS_PER_STMT): Kill.
13324         (inlinable_function_p): Compute and store body size.
13325         (expand_call_inline): Likewise.
13326         (optimize_inline_calls): Likewise.
13327
13328 2003-07-08  James E Wilson  <wilson@tuliptree.org>
13329
13330         PR target/10021
13331         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
13332         loop over new variable t2 instead of t.
13333
13334 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
13335
13336         PR bootstrap/11455
13337         * config/i386/winnt.c: Replace use of error(), warning() with
13338         error_with_decl(), warning_with_decl(),  throughout.
13339
13340 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
13341
13342         * opts.c (wrap_help): Use unsigned int, not size_t.
13343
13344 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
13345
13346         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
13347         as .file/.loc directives are incompatible with linker relaxation.
13348
13349 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
13350
13351         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
13352         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
13353         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
13354         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
13355         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
13356         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
13357         Escape { and } characters which are not part of range expressions.
13358         * fixinc/fixincl.x: Regenerate.
13359         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
13360
13361 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
13362
13363         PR c/1687
13364         * tree-inline.c (find_alloca_call): Use
13365         walk_tree_without_duplicates, instead of walk_tree.
13366         (find_builtin_longjmp_call): Likewise.
13367         * c-objc-common.c (c_cannot_inline_fn): Likewise.
13368         * c-semantics.c (find_reachable_label): Likewise.
13369
13370 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
13371
13372         PR c/11420
13373         * config/i386/i386.c (ix86_check_movabs): New function.
13374         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
13375         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
13376         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
13377
13378 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
13379
13380         * Makefile.in (install-po): Cope with empty CATALOGS.
13381
13382 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
13383
13384         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13385         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
13386         (SECTION_FUNCTION_TEMPLATE): Delete.
13387         * config/mips/elf.h: As for elf64.h.
13388         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
13389         * config/mips/linux.h: As for elf.h
13390         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13391         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
13392         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
13393         of in_sdata from current_section_name and current_section_flags.
13394         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13395         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
13396         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
13397         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
13398         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
13399         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13400         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
13401         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
13402         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
13403         (override_options): Remove setting of MASK_GPOPT.
13404         (mips_output_external): Use mips_in_small_data_p to check whether a
13405         symbol needs an .extern directive.  Don't emit such directives for
13406         TARGET_EXPLICIT_RELOCS.
13407         (mips_declare_object): Update accordingly.
13408         (mips_select_rtx_section): Call named_section rather than
13409         SMALL_DATA_SECTION.
13410         (mips_select_section): Use default_elf_section_section for everything
13411         except .text string constants.
13412         (mips_in_small_data_p): New function.
13413         (mips_encode_section_info): Remove small data handling.
13414         (mips_unique_section): Delete.
13415         (iris6_section_type_flags): New function.
13416         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
13417
13418 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13419
13420         PR Target/11453
13421         * pa.md: Disparage all mtsar constraints.
13422         (extzv, extv, insv): Don't fail on length of {32|64}.
13423
13424 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
13425
13426         * system.h: Poison MAP_CHARACTER.
13427         * config/i370/i370-protos.h (mvs_map_char): Delete.
13428         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
13429         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
13430         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
13431
13432 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
13433
13434         * toplev.c (randomize): Correct call to time().
13435
13436 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
13437
13438         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
13439         REG_EQUIV notes as well.
13440
13441 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
13442
13443         * doc/md.texi: Fix the description of addmodecc.
13444
13445 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
13446
13447         * Makefile.in (top_builddir): Set to "..", not ".".
13448         (INTLLIBS, INTLDEPS): Delete.
13449         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
13450         (LIBDEPS): Add $(LIBICONV_DEP).
13451         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
13452         (INCLUDES): Replace -I../intl with @INCINTL@.
13453         ($(top_builddir)/intl/libintl.a): Delete rule.
13454         (stage2-start, stage3-start, stage4-start, stageprofile-start,
13455         stagefeedback-start): Use $$ for variable to be evaluated by
13456         shell, not make.
13457         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
13458         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
13459         * aclocal.m4: sinclude ../config/progtest.m4.  Add
13460         contents of lcmessage.m4 from gettext distro.
13461         * configure.in: Check for wchar.h and setlocale.  Set
13462         LIBICONV_DEP to the empty string and substitute it.
13463         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
13464         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
13465         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
13466         in $LIBINTL, to avoid linking it twice.
13467         * configure, config.in: Regenerate.
13468
13469 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
13470
13471         * fixinc/mkfixinc.sh: Remove winnt support.
13472         * fixinc/fixinc.winnt: Delete with extreme prejudice.
13473
13474 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
13475
13476         * Makefile.in: Update.
13477         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
13478         * c.opt: Update documentation.
13479         * common.opt: Add some help text.
13480         * opts.c: Include intl.h.
13481         (wrap_help, print_help): New.
13482         (find_opt, handle_option, common_handle_option): opt_text now
13483         contains the '-'.  Use print_help to output help.
13484         * opts.h (struct cl_option): New member "help".
13485         * opts.sh: Update to handle help text output and to prepend
13486         options with '-'.
13487         * toplev.c (display_help): Remove some help text.
13488
13489 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
13490             Fariborz Jahanian  <fjahanian@apple.com>
13491
13492         * configure.in: Test for PowerPC mfcr field support in assembler.
13493         * config.in, configure: Regenderated.
13494
13495         * config/rs6000/power4.md: Add mfcrf reservation.
13496         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
13497         * config/rs6000/rs6000.c (mfcr_operation): Define.
13498         (print_operand): Add 'Q' case for mfcrf.
13499         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
13500         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
13501         (movcc_internal1): Emit optional field operand for mfcr and set
13502         "type" attribute appropriately.
13503         (mfcr SCC): Likewise.
13504         (movesi_from_cr_one): New.
13505
13506 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13507
13508         * config/i386/i386.md: Correct check-in of incorrect version.
13509
13510 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13511
13512         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
13513         adjacent stdio calls.
13514         * c-decl.c (c_print_identifier): Likewise.
13515         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
13516         * print-rtl.c (print_rtx): Likewise.
13517         * print-tree.c (print_node_brief, print_node): Likewise.
13518         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
13519
13520         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
13521         * config.in, configure: Regenerated.
13522
13523 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13524
13525         PR target/10979
13526         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
13527         Changed to define_expand patterns that copy operand[1] to prevent
13528         it from being clobbered before emitting an atan2?f3_1 insn.
13529         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
13530         patterns that actually specify the behaviour of x87's FPATAN.
13531
13532 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
13533
13534         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
13535         clearing of SYMBOL_FLAG_LOCAL bit.
13536         If vcall_offset fits into signed 16-bit immediate, use
13537         one instruction for both addition and load.
13538
13539 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
13540
13541         * opts.c (common_handle_option): Correct handling of the
13542         -falign- switches that do and don't take an argument.
13543
13544 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13545
13546         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
13547         today.
13548         (pushhi1_h8300hs): Likewise.
13549
13550 2003-07-07  Andreas Jaeger  <aj@suse.de>
13551
13552         * genextract.c: Convert remaining prototypes to ISO C90.
13553
13554         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
13555         * fold-const.c (fold_single_bit_test): Likewise.
13556         * diagnostic.c (default_diagnostic_finalizer): Likewise.
13557         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
13558
13559         * gengtype.c (write_array): Generate ISO C90 prototypes.
13560
13561         * genflags.c (gen_proto): Generate ISO C90 prototypes.
13562
13563 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13564
13565         PR optimization/11059
13566         * expr.c (can_store_by_pieces): Return true if length is zero.
13567         (store_by_pieces): If length is zero and endp is two, abort,
13568         othwerise, if length is zero and endp is not two, return "to".
13569         (clear_by_pieces): Do nothing if length is zero.
13570         (clear_storage): Do nothing if length is zero.
13571         (store_constructor): Simplify code when size is zero, or the
13572         target has already been cleared.  This avoids emitting a
13573         blockage instruction when initializing empty structures.
13574
13575 2003-07-07  Andreas Jaeger  <aj@suse.de>
13576
13577         * mips-tfile.c: Convert prototypes to ISO C90.
13578         * mips-tdump.c: Convert prototypes to ISO C90.
13579
13580 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13581
13582         * rtl.h (emit_line_note): Take a location_t.
13583         (emit_line_note_force): Remove.
13584         (set_file_and_line_for_statement): Take a location_t.
13585         * tree.g (emit_line_note): Take a location_t.
13586         * emit-rtl.c (emit_line_note): Take a location_t.
13587         (emit_line_note_force): Remove.
13588         * function.c (init_function_start): Adjust emit_line_note call.
13589         (expand_function_end): Use force_next_line_note, not
13590         emit_line_note_force.
13591         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
13592         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
13593         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
13594         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
13595         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
13596         genrtl_continue_stmt, genrtl_switch_stmt,
13597         genrtl_asm_stmt): Likewise.
13598         * expr.c (expand_expr): Likewise.
13599         * integrate.c (expand_inline_function): Likewise.
13600         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
13601         (expand_decl_init): Adjust emit_line_note call.
13602
13603 2003-07-07  Dale Johannesen  <dalej@apple.com>
13604
13605         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
13606
13607 2003-07-07  Andreas Jaeger  <aj@suse.de>
13608
13609         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
13610         * config/i386/i386.c: Likewise.
13611
13612 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13613
13614         * config/h8300/h8300.md: Use gen_int_mode instead of
13615         GEN_INT (trunc_int_for_mode (...)).
13616
13617 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13618
13619         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
13620         2 bytes and then subtract 2 from the stack pointer.
13621         (pushhi1_h8300hs): Likewise.
13622
13623 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13624
13625         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
13626         -frandom-seed.
13627         * configure: Regenerated.
13628         * Makefile.in: Remove extraneous comment.
13629         * toplev.c (randomize): Protect against potential multiple calls.
13630         * doc/invoke.texi (-frandom-seed): Document use for in coverage
13631         files.
13632
13633 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13634             Eric Botcazou  <ebotcazou@libertysurf.fr>
13635
13636         PR optimization/11198
13637         * alias.c (objects_must_conflict_p): Return 1 if the types have
13638         the same alias set, not if the alias sets only conflict.
13639
13640 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
13641
13642         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
13643         (convert_cset): Change inbuf to type ICONV_CONST char.
13644         * Makefile.in (LIBS): Add LIBICONV.
13645
13646         * doc/invoke.texi (-falign-functions): Document that
13647         when n is zero then a machine-dependent default is used.
13648         (-falign-labels): Document that when n is zero then a
13649         machine-dependent default is used and that -falign-labels =1
13650         is equivalent to -fno-align-labels.
13651         (-falign-loops): Likewise.
13652         (-falign-jumps): Likewise.
13653
13654 2003-07-06  Art Haas  <ahaas@airmail.net>
13655
13656         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
13657         initializer syntax.
13658
13659 2003-07-06  James E Wilson  <wilson@tuliptree.org>
13660
13661         PR optimization/9812
13662         * rtl.h (mem_for_const_double): Delete prototype.
13663         * varasm.c (mem_for_const_double): Delete function.
13664         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
13665         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
13666         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
13667         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
13668         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
13669         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
13670         comment about confused support for XFmode constants.
13671
13672 2003-07-07  Jan Hubicka  <jh@suse.cz>
13673
13674         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
13675
13676 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
13677
13678         * config/h8300/h8300.c: Fix comment typos.
13679         * config/h8300/h8300.md: Likewise.
13680         * config/i386/athlon.md: Likewise.
13681         * config/i386/i386.c: Likewise.
13682         * config/i386/pentium.md: Likewise.
13683         * config/ia64/ia64.c: Likewise.
13684         * config/ia64/itanium1.md: Likewise.
13685         * config/ia64/itanium2.md: Likewise.
13686         * config/m32r/m32r.md: Likewise.
13687         * config/m68hc11/m68hc11.c: Likewise.
13688         * config/mcore/mcore.c: Likewise.
13689         * config/mips/sr71k.md: Likewise.
13690         * config/mips/t-iris5-as: Likewise.
13691         * config/mmix/mmix.h: Likewise.
13692         * config/ns32k/ns32k.h: Likewise.
13693         * config/ns32k/NOTES: Fix a typo.
13694
13695 2003-07-06  Andreas Jaeger  <aj@suse.de>
13696
13697         * stmt.c: Convert remaining prototypes to ISO C90.
13698         * cfglayout.c: Likewise.
13699         * dbxout.c: Likewise.
13700         * gcc.c: Likewise.
13701         * genemit.c: Likewise.
13702
13703         * basic-block.h: Convert prototypes to ISO C90.
13704         * c-parse.in: Likewise.
13705         * c-pragma.h: Likewise.
13706         * c-typeck.c: Likewise.
13707         * cfghooks.h: Likewise.
13708         * cfgloopanal.c: Likewise.
13709         * dbxout.h: Likewise.
13710         * debug.h: Likewise.
13711         * dwarf2asm.h: Likewise.
13712         * gcov.c: Likewise.
13713         * gengtype-lex.l: Likewise.
13714         * sched-int.h: Likewise.
13715         * timevar.c: Likewise.
13716
13717 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
13718
13719         * c-common.h (c_comon_handle_filename,
13720         c_common_missing_arguement): New.
13721         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
13722         LANG_HOOKS_MISSING_ARGUMENT): New.
13723         * c-opts.c (missing_arg): Rename c_common_missing_argument,
13724         update to be an appropriate langhook.
13725         (c_common_handle_option): Don't handle filenames.
13726         (c_common_handle_filename): New.
13727         * hooks.c (hook_void_constcharptr,
13728         hook_bool_constcharptr_size_t_false): New.
13729         * hooks.h (hook_void_constcharptr,
13730         hook_bool_constcharptr_size_t_false): New.
13731         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
13732         LANG_HOOKS_MISSING_ARGUMENT): New.
13733         (LANG_HOOKS_INITIALIZER): Update.
13734         * langhooks.h (struct lang_hooks): Add handle_filename and
13735         missing_argument.
13736         * opts.c (handle_option): Don't handle filenames here, but ...
13737         (handle_options): ... here.
13738         (common_handle_option): Don't handle missing arguments here.
13739         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
13740         LANG_HOOKS_MISSING_ARGUMENT): New.
13741
13742 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
13743
13744         * Makfile.in: Remove traces of mbchar.
13745         * c-parse.in (MULTIBYTE_CHARS): Remove.
13746         * config.in (MULTIBYTE_CHARS): Remove.
13747         * configure: Remove --enable-mbchar.
13748         * configure.in: Remove --enable-mbchar.
13749         * mbchar.c, mbchar.h: Remove.
13750         * system.h: Poison MULTIBYTE_CHARS.
13751         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
13752         * config/linux.h (MULTIBYTE_CHARS): Remove.
13753         * config/svr4.h (MULTIBYTE_CHARS): Remove.
13754         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
13755
13756 2003-07-06  Andreas Jaeger  <aj@suse.de>
13757
13758         * varray.c (varray_check_failed): Fix typo.
13759
13760         * unroll.c: Convert prototypes to ISO C90.
13761         * varasm.c: Likewise.
13762         * varray.c: Likewise.
13763         * varray.h: Likewise.
13764         * vmsdbgout.c: Likewise.
13765         * xcoffout.c: Likewise.
13766         * xcoffout.h: Likewise.
13767
13768 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13769
13770         * gcov-io.h: Add a local time stamp.
13771         (struct gcov_info): Add stamp field.
13772         (gcov_truncate): New.
13773         * coverage.c (read_counts_file): Skip the stamp.
13774         (coverage_begin_output): Write the stamp.
13775         (build_gcov_info): Declare and init the stamp.
13776         (coverage_finish): Only unlink data file, if stamp is zero.
13777         * gcov-dump.c (dump_file): Dump the stamp.
13778         * gcov.c (bbg_stamp): New.
13779         (release_structures): Clear bbg_stamp.
13780         (read_graph_file): Read stamp.
13781         (read_count_file): Check stamp.
13782         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
13783
13784 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13785
13786         * tree.h (default_flag_random_seed): Remove.
13787         * toplev.h (local_tick): Declare.
13788         * tree.c (flag_random_seed, default_flag_random_seed): Move to
13789         toplev.c.
13790         (append_random_chars): Don't call default_flag_random_seed.
13791         * toplev.c (flag_random_seed): Define here. Set local_tick.
13792         (local_tick): Define.
13793         (randomize): New, moved from tree.c.
13794         (print_switch_values): Adjust.
13795         (toplev_main): Call randomize.
13796
13797 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
13798
13799         * tree.h (crc32_string): Declare.
13800         * tree.c (append_random_chars): Remove.
13801         (crc32_string): New.
13802         (get_file_function_name_long): Use crc32_string here.
13803
13804 2003-07-06  Andreas Jaeger  <aj@suse.de>
13805
13806         * gcc.c: Convert prototypes to ISO C90.
13807         * gcc.h: Likewise.
13808         * gcov-dump.c: Likewise.
13809         * gcov-iov.c: Likewise.
13810         * gcse.c: Likewise.
13811         * genattrtab.h: Likewise.
13812         * ggc.h: Likewise.
13813         * global.c: Likewise.
13814         * graph.c: Likewise.
13815         * graph.h: Likewise.
13816         * hosthooks.h: Likewise.
13817         * hooks.h: Likewise.
13818         * hooks.c: Likewise.
13819         * hashtable.h: Likewise.
13820         * hashtable.c: Likewise.
13821         * haifa-sched.c: Likewise.
13822         * integrate.h: Likewise.
13823         * integrate.c: Likewise.
13824         * input.h: Likewise.
13825         * ifcvt.c: Likewise.
13826         * jump.c: Likewise.
13827         * langhooks-def.h: Likewise.  Add extern to prototypes.
13828         * langhooks.c: Likewise.
13829         * langhooks.h: Likewise.
13830         * lcm.c: Likewise.
13831         * local-alloc.c: Likewise.
13832         * loop-init.c: Likewise.
13833         * loop-unroll.c: Likewise.
13834         * loop-unswitch.c: Likewise.
13835         * loop.c: Likewise.
13836         * loop.h: Likewise. Add extern to prototypes.
13837         * machmode.h: Likewise.
13838         * main.c: Likewise.
13839         * mbchar.c: Likewise.
13840         * mbchar.h: Likewise.
13841         * mkdeps.c: Likewise.
13842         * mkdeps.h: Likewise.
13843         * optabs.c: Likewise.
13844         * optabs.h: Likewise.
13845         * output.h: Likewise.
13846         * gccspec.c: Likwise.
13847         * postreload.c: Likewise.
13848         * prefix.c: Likewise.
13849         * prefix.h: Likewise.
13850         * print-rtl.c: Likewise.
13851         * print-tree.c: Likewise.
13852         * profile.c: Likewise.
13853         * read-rtl.c: Likewise.
13854         * real.c: Likewise.
13855         * real.h: Likewise.
13856         * recog.c: Likewise.
13857         * recog.h: Likewise.
13858         * reg-stack.c: Likewise.
13859         * regclass.c: Likewise.
13860         * regmove.c: Likewise.
13861         * regrename.c: Likewise.
13862         * regs.h: Likewise.
13863         * reload.c: Likewise.
13864         * reload.h: Likewise.
13865         * reload1.c: Likewise.
13866         * reorg.c: Likewise.
13867         * resource.c: Likewise.
13868         * resource.h: Likewise.
13869         * rtl-error.c: Likewise.
13870         * rtl.c: Likewise.
13871         * rtl.h: Likewise.
13872         * rtlanal.c: Likewise.
13873         * sbitmap.c: Likewise.
13874         * sbitmap.h: Likewise.
13875         * scan-decls.c: Likewise.
13876         * scan.c: Likewise.
13877         * sched-deps.c: Likewise.
13878         * sched-ebb.c: Likewise.
13879         * sched-int.h: Likewise.
13880         * sched-rgn.c: Likewise.
13881         * sched-vis.c: Likewise.
13882         * sibcall.c: Likewise.
13883         * simplify-rtx.c: Likewise.
13884         * sreal.c: Likewise.
13885         * sreal.h: Likewise.
13886         * ssa-ccp.c: Likewise.
13887         * ssa-dce.c: Likewise.
13888         * ssa.c: Likewise.
13889         * ssa.h: Likewise.
13890         * stack.h: Likewise.
13891         * stmt.c: Likewise.
13892         * stor-layout.c: Likewise.
13893         * stringpool.c: Likewise.
13894         * target.h: Likewise.
13895         * timevar.c: Likewise.
13896         * timevar.h: Likewise.
13897         * tlink.c: Likewise.
13898         * tracer.c: Likewise.
13899         * tree-inline.c: Likewise.
13900         * tree-inline.h: Likewise.
13901         * tree.c: Likewise.
13902         * tree.h: Likewise.
13903
13904 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13905
13906         * combine.c (nonzero_bits1): Fix a warning.
13907
13908 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13909
13910         * config/h8300/h8300.c (compute_mov_length): Correct the
13911         length of loading CONST0_RTX (SFmode).
13912
13913 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
13914
13915         * toplev.c (output_clean_symbol_name): Remove.
13916         * toplev.h (output_clean_symbol_name): Remove.
13917         * config/alpha/alpha.c (unicosmk_output_module_name): Use
13918         lbasename & clean_symbol_name.
13919
13920 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13921
13922         * ggc.h: Follow spelling conventions.
13923         * config/i386/i386.c: Likewise.
13924         * config/i386/winnt.c: Likewise.
13925         * config/rs6000/rs6000.c: Likewise.
13926
13927 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
13928
13929         * bt-load.c: Fix comment typos.
13930         * c-incpath.c: Likewise.
13931         * cfg.c: Likewise.
13932         * cfgcleanup.c: Likewise.
13933         * cfgloop.h: Likewise.
13934         * cfgloopmanip.c: Likewise.
13935         * cfgrtl.c: Likewise.
13936         * diagnostic.h: Likewise.
13937         * dwarfout.c: Likewise.
13938         * emit-rtl.c: Likewise.
13939         * et-forest.c: Likewise.
13940         * et-forest.h: Likewise.
13941         * expr.c: Likewise.
13942         * gcse.c: Likewise.
13943         * genattr.c: Likewise.
13944         * jump.c: Likewise.
13945         * langhooks.h: Likewise.
13946         * local-alloc.c: Likewise.
13947         * loop-unroll.c: Likewise.
13948         * loop-unswitch.c: Likewise.
13949         * ra-build.c: Likewise.
13950         * regclass.c: Likewise.
13951         * regmove.c: Likewise.
13952         * rtl.def: Likewise.
13953         * rtlanal.c: Likewise.
13954         * sched-ebb.c: Likewise.
13955         * sched-rgn.c: Likewise.
13956         * simplify-rtx.c: Likewise.
13957         * ssa.c: Likewise.
13958         * tracer.c: Likewise.
13959         * tree.c: Likewise.
13960
13961 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
13962
13963         * cppcharset.c: Use the correct return type for the fallback iconv
13964         macro.
13965
13966 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13967
13968         Blame to Jan Hubicka  <jh@suse.cz>
13969         * cfglayout.c (record_effective_endpoints): Split insns before
13970         first basic block correctly.
13971
13972 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13973
13974         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
13975         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
13976         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
13977
13978 2003-07-05  Andreas Jaeger  <aj@suse.de>
13979
13980         * genattrtab.c (write_attr_get): Revert part of last patch to
13981         always write out a prototype.
13982
13983         * genemit.c (gen_split): Readd lost unused attributes in last
13984         patch.
13985
13986 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13987
13988         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
13989         different from header.
13990
13991 2003-07-05  Andreas Schwab  <schwab@suse.de>
13992
13993         * config/m68k/m68k.c: Remove code protected by CRDS.
13994         * config/m68k/m68k.md: Likewise.
13995
13996 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
13997
13998         PR driver/11417
13999         * c-opts.c (permit_fortran_options): New.
14000         (c_common_init_options): Accept fortran front end options if
14001         it looks like we might be preprocessing Fortran.
14002         (c_common_handle_option): Don't reject switch if permit_fotran_options.
14003
14004 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14005
14006         * genattr.c (internal_dfa_insn_code): Output prototype.
14007         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
14008         * genautomata.c: Likewise.
14009         * genconditions.c: Likewise.
14010         * genemit.c: Likewise.
14011         * genextract.c: Likewise.
14012         * gengenrtl.c: Likewise.
14013         * gengtype.c: Likewise.
14014         * genopinit.c: Likewise.
14015         * genoutput.c: Likewise.
14016         * genpeep.c: Likewise.
14017         * genrecog.c: Likewise.
14018
14019 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
14020
14021         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
14022         (struct cpp_options): Add narrow_charset, wide_charset,
14023         bytes_big_endian fields.  Remove EBCDIC field.
14024         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
14025
14026         * cpphash.h: Include <iconv.h> if we have it, otherwise
14027         provide a dummy definition of iconv_t.
14028         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
14029         (_cpp_valid_ucn): Update prototype.
14030         (_cpp_destroy_iconv): New prototype.
14031
14032         * doc/cpp.texi: Document character set handling.
14033         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
14034         * doc/extend.texi: Delete entire section on multiline strings.
14035         Rewrite section on __FUNCTION__ etc now that these are
14036         variables in C.
14037
14038         * cppucnid.tab, cppucnid.pl: New files.
14039         * cppucnid.h: New generated file.
14040         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
14041         (iconv_open, iconv, iconv_close): Provide dummy definitions
14042         if !HAVE_ICONV.
14043         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
14044         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
14045         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
14046         cpp_interpret_string, narrow_str_to_charconst,
14047         wide_str_to_charconst): New.
14048         (ucn_valid_in_identifier): Use a binary search through the
14049         ucnranges table defined in cppucnid.h, not a long chain of if
14050         statements.
14051         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
14052         character names are only valid in C++ and C99" to a warning.
14053         Issue the "meaning of \[uU] is different in traditional C"
14054         warning here.  Take care not to let iconv see an invalid UCS
14055         value if we get a malformed UCN.  Issue an error if we don't
14056         have iconv.
14057         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
14058         cpp_interpret_string to do the heavy lifting.
14059
14060         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
14061         narrow_charset, wide_charset fields of options structure.
14062         (cpp_destroy): Call _cpp_destroy_iconv.
14063         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
14064         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
14065         (cpp_interpret_charconst): Moved to cppcharset.c.
14066         * cpplib.c (dequote_string): Delete.
14067         (interpret_string_notranslate): New.
14068         (do_line, do_linemarker): Use interpret_string_notranslate.
14069
14070         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
14071
14072         * c-common.c (fname_string, combine_strings): Delete.
14073         * c-common.h (fname_string, combine_strings): Delete prototypes.
14074         * c-lex.c (ignore_escape_flag): Delete.
14075         (cb_ident): Use cpp_interpret_string, not lex_string.
14076         (get_nonpadding_token): New function.
14077         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
14078         Adjust calls to lex_string.  Don't write *value twice.
14079         (lex_string): Now handles string constant concatenation.
14080         Most of the work handed off to cpp_interpret_string.
14081         Call fix_string_type here.
14082         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
14083         FUNC_NAME, throughout.
14084         (OBJC_STRING): New token type.
14085         (primary:STRING): No need to call fix_string_type here.
14086         (primary:objc_string): Make that OBJC_STRING.
14087         (objc_string nonterminal): Delete.
14088         (yylexname): Delete code to handle fake string constants.
14089         (yylexstring): Delete entirely.
14090         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
14091         to handle CPP_ATSIGN.
14092
14093         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
14094         * c-opts.c (missing_arg, c_common_handle_option): Handle
14095         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
14096         (c_common_init): Set cpp_opts->bytes_big_endian, not
14097         cpp_opts->EBCDIC.  Call cpp_init_iconv.
14098         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
14099         (TARGET_EBCDIC): Delete default definition.
14100
14101         * objc/objc-act.c (build_objc_string_object): No need to
14102         handle string constant concatenation.
14103
14104 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
14105
14106         * doc/install.texi: Fix typos.
14107         * doc/invoke.texi: Likewise.
14108         * doc/tm.texi: Likewise.
14109
14110 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
14111
14112         * config/pa/fptr.c: Fix comment typos.
14113         * config/pa/pa-64.h: Likewise.
14114         * config/pa/pa.c: Likewise.
14115         * config/pa/pa.h: Likewise.
14116         * config/rs6000/603.md: Likewise.
14117         * config/rs6000/7xx.md: Likewise.
14118         * config/rs6000/darwin.h: Likewise.
14119         * config/rs6000/freebsd.h: Likewise.
14120         * config/rs6000/rs6000.c: Likewise.
14121         * config/rs6000/rs6000.md: Likewise.
14122         * config/rs6000/spe.h: Likewise.
14123
14124 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
14125
14126         * config/s390/2064.md: Change GNU CC to GCC.
14127         * config/s390/2084.md: Likewise.
14128         * config/s390/fixdfdi.h: Likewise.
14129         * config/s390/linux.h: Likewise.
14130         * config/s390/s390-modes.def: Likewise.
14131         * config/s390/s390-protos.h: Likewise.
14132         * config/s390/s390.c: Likewise.
14133         * config/s390/s390.h: Likewise.
14134         * config/s390/s390.md: Likewise.
14135         * config/s390/s390x.h: Likewise.
14136
14137 2003-07-04  Jeff Law  <law@redhat.com>
14138
14139         PR c/11428
14140         * expr.c (do_store_flag): Pass in the correct result type
14141         when calling fold_single_bit_test.
14142         * fold-const.c (fold_single_bit_test): Use result_type for the
14143         result when folding a sign bit test.
14144
14145 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
14146
14147         * opts.c (common_handle_options): Negate sense of -falign- switches.
14148
14149 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
14150
14151         * Makefile.in: Replace PWD with PWD_COMMAND.
14152
14153 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14154
14155         * cfgloopanal.c (count_strange_loop_iterations): New static function.
14156         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
14157         Handle strange loops.
14158
14159 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
14160
14161         * install.texi: Even the g77 manpage is derived from
14162         the full g77 manual.
14163
14164 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
14165
14166         * ABOUT-NLS: Delete.
14167         * intl: Delete entire directory.
14168         * aclocal.m4: Include ../config/gettext.m4.  Delete
14169         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
14170         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
14171         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
14172         Remove intl/Makefile from all_outputs.
14173         * configure, config.in: Regenerate.
14174         * Makefile.in: Expunge all references to intl subdirectory.
14175         Add -I../intl to INCLUDES.
14176         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
14177
14178 2003-07-04  Roger Sayle  <roger@eyesopen.com>
14179
14180         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
14181         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
14182
14183 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
14184
14185         PR c++/5287, PR c++/7910, PR c++/11021
14186         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
14187         dllimport attribute if function is defined at declaration, but
14188         report error instead. Likewise for dllimport'd variable
14189         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
14190         declared within functions, Report error if dllimport or dllexport
14191         symbol is not global.
14192         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
14193         if defined after declaration or if inlined. Don't allow definition
14194         of static data members of C++ classes. Don't dllimport virtual
14195         methods.
14196         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
14197         (i386_pe_mark_dllimport): Remove unnecessary checks.
14198         (i386_pe_encode_section_info): Warn if the dllimport attribute
14199         and symbol prefix have been instantiated and then overridden.
14200
14201         * doc/extend.texi: Document dllimport and dllexport attributes.
14202
14203         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
14204
14205 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
14206
14207         * config/kaos.h (CPP_PREDEFINES): Delete.
14208         (TARGET_OS_CPP_BUILTINS): New.
14209
14210 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14211
14212         * c-aux-info.c: Include toplev.h after c-tree.h.
14213         * c-common.c: Likewise.
14214         (GCC_DIAG_STYLE): Undef.
14215         * c-semantics.c (GCC_DIAG_STYLE): Define.
14216         * c-tree.h (GCC_DIAG_STYLE): Likewise.
14217         * diagnostic.h (inform): Move prototype to toplev.h.
14218         * jump.c: Include diagnostic.h before toplev.h.
14219         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
14220         (warning, error, fatal_error, pedwarn, sorry, inform,
14221         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
14222
14223 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14224
14225         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
14226         at all if edge is not specified.
14227         (can_copy_bbs_p, copy_bbs): New.
14228         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
14229         * cfgloop.c (get_loop_body): Comment more precisely.
14230         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
14231         (scale_bbs_frequencies): Fix comment typo.
14232         (can_duplicate_loop_p): Use can_copy_bbs_p.
14233         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
14234
14235 2003-07-03  Devang Patel <dpatel@apple.com>
14236
14237         * c-opts.c (c_common_parse_file): Remove extra
14238         debug_hooks->start_source_file call.
14239
14240 2003-07-03  Roger Sayle  <roger@eyesopen.com>
14241
14242         * real.c (real_trunc, real_floor, real_ceil): New functions
14243         to implement trunc, floor and ceil respectively.
14244         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
14245         * builtins.c (integer_valued_real_p): New function to test if
14246         a floating point expression has an integer valued result.
14247         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
14248         foo(x) where foo is an integer rounding function.  Similarly,
14249         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
14250         (double)(int)x when both foo and bar are integer rounding
14251         functions and we don't need to honor errno.
14252         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
14253         New functions to fold trunc, floor and ceil.
14254         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
14255         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
14256         to fold BUILT_IN_CEIL*.
14257         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
14258         the remaining integer rounding functions.
14259
14260 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14261
14262         * config/sparc/sparc.c (function_arg_partial_nregs): Use
14263         SPARC_INT_ARG_MAX to determine where to split unnamed
14264         complex FP arguments.
14265
14266 2003-07-03  Jan Hubicka  <jh@suse.cz>
14267
14268         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
14269         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
14270         (merge_blocks_move_predecessor_nojumps,
14271          merge_blocks_move_successor_nojumps): Use merge_blocks.
14272         (try_optimize_cfg): Use merge_blocks_move.
14273         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
14274         (merge_blocks_nomove): Rename to rtl_merge_blocks.
14275         (cfg_layout_create_basic_block): New.
14276         (rtl_can_merge_blocks): New.
14277         (cfg_layout_split_block): Do not alloc aux by hand.
14278         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
14279         merge_blocks.
14280         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
14281         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
14282         * cfgloopmanip.c (loop_split_edge_with): Likewise.
14283         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
14284
14285         * basic-block.h (basic_block_def): Add field 'rbi'.
14286         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
14287         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
14288         * cfg.c (entry_exit_blocks): Add new field.
14289         * cfglayout.c: Include alloc-pool.h;
14290         (cfg_layout_pool): New.
14291         (record_effective_endpoints, fixup_reorder_chain,
14292         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
14293         of rbi.
14294         (cfg_layout_initialize_rbi): New function.
14295         (cfg_layout_initialize): Use it.
14296         (cfg_layout_finalize): Clear rbi fields.
14297         * cfglayout.h (RBI): Kill.
14298         (cfg_layout_initialize_rbi): Declare.
14299         * cfgloopmanip.c (copy_bbs): Use rbi.
14300         (record_exit_edges): Likewise.
14301         (duplicate_loop_to_header_edge): Likewise.
14302         * cfgrtl.c (cfg_layout_create_basic_block): Use
14303         cfg_layout_initialize_rbi.
14304         (cfg_layout_split_block): Use rbi.
14305         (cfg_layout_delete_block): Likewise.
14306         * loop-init.c (loop_optimizer_finalize): Likewise.
14307         * loop-unswitch.c (unswitch_loop): Likewise.
14308         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
14309
14310         * cfgrtl.c: Update comments.
14311         (try_redirect_by_replacing_jump): New argument.
14312         (redirect_branch_edge): Break out from ...
14313         (rtl_redirect_edge_and_branch): ... this one.
14314         (update_cfg_after_block_merging): Break out from ...
14315         (rtl_merge_blocks): ... this one.
14316         (cfg_layout_split_edge): New.
14317         (cfg_layout_merge_blocks): New.
14318         (cfg_layout_can_merge_blocks_p): New.
14319         (cfg_layout_redirect_edge_and_branch): Reorganize.
14320         (cfg_layout_rtl_cfg_hooks): Fill in.
14321         (cfg_layout_delete_block): Kill barriers.
14322         * cfganal.c (can_fallthru): Deal with exit blocks
14323         * cfglayout.c (cfg_layout_function_header): New function
14324         (record_effective_endpoints): Record function header.
14325         (fixup_reorder_chain): Fixup dead jumptables; place header
14326
14327         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
14328         * bb-reorder.c (cfg_layout_initialize): Update call.
14329         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
14330         edges in cfglayout mode.
14331         * cfglayout.c (cleanup_unconditional_jumps): Kill.
14332         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
14333         * cfglayout.h (cfg_layout_initialize): Update prototype.
14334         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
14335         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
14336         * flow.c (propagate_block): Do not crash when basic block ends
14337         by first insn in the chain.
14338         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
14339         do loop discovery.
14340         * tracer.c (tracer): Update call of cfg_layout_initialize.
14341
14342 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14343
14344         * Makefile.in: Use dependency variables in lieu of explicit
14345         files throughout.
14346
14347 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
14348
14349         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
14350         * tree.h: ...to here.
14351
14352 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
14353
14354         * config/s390/2064.md: Fix comment typos.
14355         * config/s390/2084.md: Likewise.
14356         * config/s390/s390.c: Likewise.
14357         * config/s390/s390.md: Likewise.
14358         * config/sh/sh.c: Likewise.
14359         * config/sh/sh.h: Likewise.
14360         * config/sh/sh.md: Likewise.
14361         * config/sparc/sparc.c: Likewise.
14362         * config/sparc/sparc.h: Likewise.
14363         * config/sparc/sparc.md: Likewise.
14364         * config/stormy16/stormy16.c: Likewise.
14365         * config/stormy16/stormy16.h: Likewise.
14366         * config/stormy16/stormy-abi: Fix a typo.
14367
14368 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
14369
14370         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
14371
14372 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14373
14374         * config/mips/mips.h (save_argv): Delete.
14375
14376 2003-07-03  Roger Sayle  <roger@eyesopen.com>
14377
14378         PR target/10700
14379         * fold-const.c (extract_muldiv_1): There's nothing that can be done
14380         if the expression is a SAVE_EXPR.
14381
14382 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
14383
14384         * config/m32r/m32r.c: Fix comment typos.
14385         * config/m68hc11/m68hc11.c: Likewise.
14386         * config/m68hc11/m68hc11.h: Likewise.
14387         * config/m68k/m68k.c: Likewise.
14388         * config/mcore/mcore.c: Likewise.
14389         * config/mcore/mcore.h: Likewise.
14390         * config/mcore/mcore.md: Likewise.
14391         * config/mips/mips.c: Likewise.
14392         * config/mips/mips.h: Likewise.
14393         * config/mips/mips.md: Likewise.
14394         * config/mips/netbsd.h: Likewise.
14395         * config/mn10300/mn10300.c: Likewise.
14396
14397 2003-07-03  Andreas Schwab  <schwab@suse.de>
14398
14399         * dbxout.c (pending_bincls): Move decl down inside
14400         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
14401
14402 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14403
14404         * rtl.h (NOTE_DATA): Refer to whole union.
14405         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
14406
14407 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14408
14409         PR optimization/11381
14410         * simplify-rtx.c (simplify_relational_operation): Check that
14411         two equal operands have no side-effects before simplifying
14412         the comparison.
14413
14414 2003-07-02  Jeff Law  <law@redhat.com>
14415
14416         * expr.c (do_store_flag): Remove special case folding for
14417         single bit tests.  Instead call back into the commonized folder
14418         routine.
14419         * fold-const.c (fold_single_bit_test): New function, mostly
14420         extracted from do_store_flag, with an additional case extracted
14421         from fold.
14422         (fold): Call fold_single_bit_test appropriately.
14423         * tree.h (fold_single_bit_test): Prototype.
14424
14425 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
14426
14427         * system.h: Include filenames.h.
14428         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
14429         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
14430         define based on HAVE_DOS_BASED_FILE_SYSTEM.
14431         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
14432         * config/i386/xm-mingw32.h: Don't define
14433         HAVE_DOS_BASED_FILE_SYSTEM,
14434         DIR_SEPARATOR, or DIR_SEPARATOR_2.
14435         * doc/hostconfig.texi: Update to match.
14436
14437         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
14438         config/i386/cygwin.h:
14439         Use IS_ABSOLUTE_PATH throughout.
14440         * gcc.c (DIR_UP): Delete, unused.
14441         * protoize.c (IS_SAME_PATH): Define in terms of
14442         FILENAME_CMP.
14443         (is_abspath): Delete.
14444
14445 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14446
14447         * config/i386/emmintrin.h: Fix comment typos.
14448         * config/i386/i386.c: Likewise.
14449         * config/i386/i386.h: Likewise.
14450         * config/i386/sco5.h: Likewise.
14451         * config/ia64/ia64.c: Likewise.
14452         * config/ia64/itanium2.md: Likewise.
14453
14454 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14455
14456         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
14457         DBX_USE_BINCL.
14458         (emit_bincl_stab): Same.
14459         (emit_pending_bincls): Same.
14460
14461 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14462
14463         * config/h8300/h8300.c (compute_mov_length): Fix the length of
14464         loading CONST0_RTX (SFmode).
14465         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
14466         'G' to CONST0_RTX (SFmode).
14467         * config/h8300/h8300.md (movsf_h8300): Change the first
14468         constraint to 'G'.
14469         (movsf_h8300h): Likewise.
14470
14471 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
14472
14473         * c-common.h (c_common_init_options): New prototype.
14474         * c-opts.c (deferred_size): Remove.
14475         (defer_opt): Array is now pre-allocated.
14476         (c_common_init_options): Pre-allocate deferred_opts.  Make
14477         lang_flags unsigned.
14478         (push_command_line_options): Free deferred_opts.
14479         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
14480         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
14481         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
14482         * langhooks.h (struct lang_hooks): New prototype for init_options.
14483         * main.c (main): Cast argv.
14484         * opts.c (handle_option, handle_options): Update prototypes.
14485         (decode_options): save_argc, save_argv are not global.  Constify.
14486         * opts.h (decode_options): New prototype.
14487         * toplev.c (general_init): New protoype.
14488         (save_argv): Make static.
14489         (save_argc): Remove.
14490         (print_switch_values, general_init): Constify.
14491         (toplev_main): Save argv.
14492         * toplev.h (toplev_main): Update prototype.
14493         (save_argc, save_argv): Remove.
14494
14495 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
14496
14497         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
14498         (emit_bincl_stab): Same.
14499         (emit_pending_bincls): Same.
14500
14501 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14502
14503         PR c++/11072
14504         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
14505
14506 2003-07-02  Andreas Schwab  <schwab@suse.de>
14507
14508         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
14509
14510 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
14511
14512         PR optimization/11210
14513         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
14514         about the behaviour with regard to bitfields.
14515         * fold-const (decode_field_reference): Record outermost type in
14516         case the expression is a NOP. Strip all NOPs. Set the signedness
14517         to that of the outermost type (if any) when the bitsize is equal
14518         to the size of the type.
14519
14520 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
14521
14522         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
14523         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
14524         (adddi3_internal_3, addsi3_internal_2): Likewise.
14525
14526 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
14527
14528         * config/mips/mips.c (machine_function): Add new fields:
14529         ignore_hazard_length_p and all_noreorder_p.
14530         (mips_flag_delayed_branch): New variable.
14531         (override_options): Treat '/' as an operand punctuation character.
14532         Set up mips_flag_delayed_branch.
14533         (print_operand): Handle '/'.
14534         (mips_output_function_prologue): Put the whole function in
14535         .set noreorder and .set nomacro if all_noreorder_p is true.
14536         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
14537         (mips16_optimize_gp): Remove "first insn" parameter.
14538         (mips16_lay_out_constants): New function, split out from mips_reorg.
14539         (mips_avoid_hazard, mips_avoid_hazards): New functions.
14540         (mips_reorg): For mips16 code, call mips16_lay_out_constant
14541         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
14542         do delayed-branch scheduling followed by hazard detection.
14543         (mips_adjust_insn_length): Only account for hazards if
14544         !ignore_hazard_length_p.
14545         (mips_output_load_label): Add a nop to the o32 sequence if
14546         the target suffers from load delays.
14547         (mips_output_conditional_branch): Add %/ to the end of branches.
14548         (mips_output_division): Fill the branch delay slot with %#.
14549         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
14550         instructions.  End all other %* branches with %/.
14551         (ffssi2, ffsdi2): Fix lengths.
14552         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
14553         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
14554         (fix_truncsfsi2_macro): Likewise.
14555         (mov_lwl): Set hazard to "none".
14556         (ashldi3_internal): Fill the branch delay slot with %#.
14557         (ashrdi3_internal, lshrdi3_internal): Likewise.
14558         (exception_receiver): Explicitly set $28.
14559         (hazard_nop): New pattern.
14560
14561 2003-07-02  Jan Hubicka  <jh@suse.cz>
14562
14563         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
14564         before calling tree_inlinable_function_p.
14565
14566 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14567
14568         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
14569         <internal/stdio_core.h> too.
14570         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
14571         <internal/wchar_core.h> too.
14572         Substitute va_list uses in inline definition.
14573         * fixinc/fixincl.x: Regenerate.
14574
14575 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14576
14577         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
14578         Undef before redefinition.
14579         (LABEL_AFTER_LOC): Likewise.
14580         (DEFAULT_SIGNED_CHAR): Likewise.
14581         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
14582         Fix IRIX spelling.
14583
14584         * config/mips/iris3.h: Remove, unused.
14585         * config/mips/iris4.h: Likewise.
14586
14587         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
14588
14589         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
14590         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
14591         target_cpu_default.
14592
14593         * config/mips/iris5.h: Move explicit includes ...
14594         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
14595
14596         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
14597         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
14598         tm_defines.
14599
14600         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
14601         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
14602         target_cpu_default.
14603
14604         * config/mips/iris6.h: Fix IRIX spelling.
14605         (MULTILIB_DEFAULTS): Undef before redefinition.
14606
14607         * config/mips/iris6.h: Move explicit includes ...
14608         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
14609
14610 2003-07-02  Jan Hubicka  <jh@suse.cz>
14611
14612         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
14613         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
14614         Use next_needed field instead of aux to maintain the queue.
14615         * cgraph.h (cgraph_node): Add next_needed.
14616         (cgraph_varpool_node): Add next_needed; remove aux.
14617         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
14618
14619 2003-07-02  Jan Hubicka  <jh@suse.cz>
14620
14621         * cgraphunit.c (cgraph_finalize_function): Set finalized.
14622         (cgraph_finalize_function): Do not examine inlinablility.
14623         (cgraph_finalize_compilation_unit): Do it here.
14624         * cgraph.h (cgraph_local_info): Add finalized field.
14625
14626 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14627
14628         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
14629         (gt_pch_restore): Likewise.
14630
14631 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14632
14633         * config/alpha/alpha.c: Fix comment typos.
14634         * config/alpha/elf.h: Likewise.
14635         * config/arm/arm.c: Likewise.
14636         * config/arm/arm.h: Likewise.
14637         * config/arm/arm.md: Likewise.
14638         * config/arm/t-arm-coff: Likewise.
14639         * config/arm/t-strongarm-pe: Likewise.
14640         * config/arm/xscale-elf.h: Likewise.
14641         * config/avr/avr.h: Likewise.
14642
14643 2003-07-01  Jeff Law  <law@redhat.com>
14644
14645         * stmt.c (any_pending_cleanups): Remove another redundant test.
14646
14647 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
14648             J"orn Rennecke <joern.rennecke@superh.com>
14649
14650         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
14651         for MEM case.
14652
14653 2003-07-01  Devang Patel  <dpatel@apple.com>
14654
14655         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
14656         (binclstatus): New.
14657         (struct dbx_file): New members - bincl_status, pending_bincl_name and
14658         prev.
14659         (pending_bincls): New.
14660         (dbxout_init): Initialize new dbx_file members.
14661         (dbxout_start_source_file): Same.
14662         (emit_bincl_stab): New function.
14663         (emit_pending_bincls): Same.
14664         (emit_pending_bincls_if_required): Same.
14665         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
14666         processed.
14667         (dbxout_begin_block): Emit pending BINCL stabs.
14668         (dbxout_end_block): Same.
14669         (dbxout_function_decl): Same.
14670         (dbxout_continue): Same.
14671         (dbxout_type): Same.
14672         (dbxout_class_name_qualifiers): Same.
14673         (dbxout_symbol): Same.
14674         (dbxout_symbol_location): Same.
14675         (dbxout_parms): Same.
14676
14677 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14678
14679         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
14680         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
14681
14682 2003-07-01  Andreas Jaeger  <aj@suse.de>
14683
14684         * fold-const.c: Convert prototypes to ISO C90.
14685         * function.c: Likewise.
14686         * function.h: Likewise.
14687
14688 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14689
14690         * doc/contrib.texi: Fix typos.
14691         * doc/invoke.texi: Likewise.
14692         * doc/passes.texi: Likewise.
14693         * doc/sourcebuild.texi: Likewise.
14694         * doc/tm.texi: Likewise.
14695
14696 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14697
14698         * basic-block.h: Fix comment typos.
14699         * bb-reorder.c: Likewise.
14700         * c-format.c: Likewise.
14701         * cfgcleanup.c: Likewise.
14702         * cfghooks.h: Likewise.
14703         * cfgloop.c: Likewise.
14704         * cfgloopmanip.c: Likewise.
14705         * cfgrtl.c: Likewise.
14706         * cgraph.h: Likewise.
14707         * cgraphunit.c: Likewise.
14708         * combine.c: Likewise.
14709         * convert.c: Likewise.
14710         * dbxout.c: Likewise.
14711         * df.c: Likewise.
14712         * df.h: Likewise.
14713         * diagnostic.c: Likewise.
14714         * dwarf2out.c: Likewise.
14715         * et-forest.h: Likewise.
14716         * flow.c: Likewise.
14717         * fold-const.c: Likewise.
14718         * function.h: Likewise.
14719         * gcov-io.h: Likewise.
14720         * gcov.c: Likewise.
14721         * gcse.c: Likewise.
14722         * genautomata.c: Likewise.
14723         * ggc-common.c: Likewise.
14724         * ggc-page.c: Likewise.
14725         * loop-unroll.c: Likewise.
14726         * loop-unswitch.c: Likewise.
14727         * loop.c: Likewise.
14728         * mips-tfile.c: Likewise.
14729         * optabs.c: Likewise.
14730         * ra-build.c: Likewise.
14731         * ra-colorize.c: Likewise.
14732         * ra-rewrite.c: Likewise.
14733         * ra.h: Likewise.
14734         * regmove.c: Likewise.
14735         * reload.c: Likewise.
14736         * rtlanal.c: Likewise.
14737         * sched-ebb.c: Likewise.
14738         * sched-int.h: Likewise.
14739         * sched-vis.c: Likewise.
14740         * sreal.c: Likewise.
14741         * ssa-ccp.c: Likewise.
14742         * ssa.c: Likewise.
14743         * toplev.c: Likewise.
14744         * tree-inline.c: Likewise.
14745         * value-prof.c: Likewise.
14746         * value-prof.h: Likewise.
14747
14748 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
14749
14750         * rtl.h (emit_line_note_after): Remove.
14751         (emit_note_copy_after, emit_note_copy): New.
14752         * emit-rtl.c (reorder_insns_with_line_notes): Replace
14753         emit_line_note_after with emit_note_copy_after.
14754         (emit_insn_after_with_line_notes): Likewise.
14755         (emit_line_note_after): Kill.
14756         (emit_note_copy_after): New.
14757         (emit_note_copy): New.
14758         * function.c (emit_return_into_block): Use emit_note_copy_after.
14759         (thread_prologue_and_epilogue_insns): Likewise.
14760         * integrate.c (expand_inline_function): Use emit_note_copy.
14761         (copy_insn_list): Likewise.
14762         * unroll.c (copy_loop_body): Likewise.
14763         * cfglayout.c (duplicate_insn_chain): Likewise.
14764
14765 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
14766
14767         * c-tree.h (define_label): Replace filename and lineno arguments
14768         with a location_t.
14769         * c-decl.c (poplevel): Adjust define_label call.
14770         (pop_label_level): Likewise.
14771         (define_label): Replace filename and lineno arguments with a
14772         location_t.
14773         (store_parm_decls): Use DECL_SOURCE_LOCATION.
14774         * c-parse.in (label): Adjust define_label call.
14775
14776 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
14777
14778         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
14779         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
14780         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
14781         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
14782         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
14783
14784 2003-07-01  Andreas Jaeger  <aj@suse.de>
14785
14786         * final.c: Convert prototypes to ISO C90.
14787         * flow.c: Likewise.
14788         * flags.h: Likewise.
14789         * gcov-io.c: Likewise.
14790         * gcov-io.h: Likewise.
14791
14792 See ChangeLog.9 for earlier changes.