1 2003-09-01 Mark Mitchell <mark@codesourcery.com>
3 * Makefile.in (gencheck.o): Remove build commands.
4 (dummy-conditions.o): Likewise.
5 (read-rtl.o): Likewise.
6 (gensupport.o): Likewise.
7 (genconfig$(build_exeext)): Remove rule.
8 (genconfig.o): Remove build commands.
9 (genflags$(build_exeext)): Remove rule.
10 (genflags.o): Remove build commands.
11 (gencodes$(build_exeext)): Remove rule.
12 (gencodes.o): Remove build commands.
13 (genconstants.o): Remove build commands.
14 (genemit$(build_exeext)): Remove rule.
15 (genemit.o): Remove build commands.
16 (genrecog$(build_exeext)): Remove rule.
17 (genrecog.o): Remove build commands.
18 (genextract$(build_exeext)): Remove rule.
19 (genextract.o): Remove build commands.
20 (genpeep$(build_exeext)): Remove rule.
21 (genpeep.o): Remove build commands.
22 (genattr$(build_exeext)): Remove rule.
23 (genattr.o): Remove build commands.
24 (genprognames): New variable.
29 (genattrtab.o): Remove build commands.
30 (genautomata.o): Likewise.
31 (genoutput$(build_exeext)): Remove rule.
32 (genoutput.o): Remove build commands.
33 (gengenrtl.o): Likewise.
34 (genpreds.o): Likewise.
35 (gengtype.o): Likewise.
36 (genconditions.o): Likewise.
37 (gen-protos.o): Likewise.
39 (fix-header.o): Likewise.
40 (scan-decls.o): Likewise.
41 (check-g++): Combine with other check targets.
42 (check-gcc): Likewise.
43 (check-g77): Likewise.
44 (check-objc): Likewise.
46 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
48 * config.gcc: Remove host-specific stuff which is unused here
49 since the introduction of config.host.
51 * doc/fragments.texi: Mention config.host.
52 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
53 of config.build, config.host, and config.gcc.
55 2003-09-01 Zack Weinberg <zack@codesourcery.com>
57 * c-decl.c (pushdecl): Don't put variables on
58 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
61 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
63 * config.host: New file.
64 * config.gcc: Remove some host-specific stuff and some
65 logic needed only for repeated invocation.
66 * configure.in: Use config.host.
67 * configure: Regenerate.
69 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
71 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
72 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
73 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
74 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
75 * tree.def (BIT_ANDTC_EXPR): Kill.
77 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
79 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
80 * configure: Regenerate.
82 * config.gcc: Remove references to install_headers_dir, now unused
83 since introduction of config.build.
84 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
86 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
89 * config.build: New file.
90 * config.gcc: Remove some build-specific stuff.
91 * configure.in: Use config.build.
92 * configure: Regnerate.
94 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
95 Roger Sayle <roger@eyesopen.com>
98 * stmt.c (expand_end_case_type): Only use jump tables for dense
99 switch statements when optimizing for size.
101 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
103 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
104 the != 0 case, which ensures pending stack adjustments are flushed.
106 2003-08-30 Zack Weinberg <zack@codesourcery.com>
108 * configure.frag: Delete file.
109 * configure.in: Rename the substitution variables
110 dep_host_xmake_file and dep_tmake_file to xmake_file and
111 tmake_file respectively. Do not expand $srcdir in the
112 value of these; leave that for Make. Introduce a new
113 substitution varaible, all_lang_makefrags, which lists
114 subdirectory Make-lang.in files; exclude these from
115 all_lang_makefiles, which is now only for subdirectory
116 outputs. Do not invoke configure.frag. Do not set nor
117 AC_SUBST_FILE target_overrides, host_overrides, or
118 language_fragments. Create build subdirectories in
119 config.status extra commands.
120 * configure: Regenerate.
121 * Makefile.in: Update substitutions to match changes to
122 configure. Use include directives instead of @-insertions
123 to read in host, target, and language fragments.
124 (Makefile rule): Do not invoke configure.frag. Do not copy
125 config.status to config.run before executing it. Set
126 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
128 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
130 2003-08-30 Zack Weinberg <zack@codesourcery.com>
132 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
133 * c-typeck.c (same_translation_unit_p): New function.
134 (comptypes): Use it instead of flags parameter to identify
135 structure types from different translation units.
136 * c-decl.c (duplicate_decls): Always call comptypes with
137 COMPTYPE_STRICT flags argument.
138 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
141 2003-08-30 Zack Weinberg <zack@codesourcery.com>
143 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
144 * c-decl.c (struct c_scope): Remove "incomplete" field.
145 (pushdecl): Attach variables with incomplete types to
146 the TYPE_MAIN_VARIANT of the incomplete type in question.
147 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
148 to complete, not at current_scope->incomplete. All such
149 variables do need completion.
151 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
152 Nicolas Pitre <nico@cam.org>
154 * arm/lib1funcs.asm (RETCOND): Delete.
155 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
156 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
157 (__ARM_ARCH__): Move here from ieee754-?f.S.
158 (RET, RETc): Clean up definitions.
159 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
160 (FUNC_END): New macro that marks the end of any function.
161 (ARM_FUNC_START): New macro that allows an assembler routine to be
162 implemented in ARM code even if a Thumb-only build.
163 Unconditionally include ieee754-?f.S.
164 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
165 Mark ends of functions.
166 Split into separate conditionally-compiled units.
167 Use RETLDM to return from routines.
168 * arm/ieee754-sf.S: Similarly.
169 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
170 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
171 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
172 _fixsfsi and _fixunssfsi.
174 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
175 multiplication underflows to zero.
176 (__adddf3): Fix bug when using VFP ordering on little-endian
178 (__fixdfsi): Use rrx to extract the carry into a register instead of
179 MRS instruction. Optimize later use of result.
180 * arm/ieee754-sf.S (__fixsfsi): Likewise.
181 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
183 2003-08-29 Richard Henderson <rth@redhat.com>
185 * tree-optimize.c: New file.
186 * Makefile.in (OBJS-archive): Add tree-optimize.o.
187 (tree-optimize.o): New.
188 * c-decl.c (store_parm_decls): Use allocate_struct_function.
189 (finish_function): Don't free_after_parsing or free_after_compilation.
190 (set_save_expr_context): Move to tree-optimize.c.
191 (c_expand_body_1): Use tree_rest_of_compilation.
192 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
193 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
194 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
195 iterate until closure.
196 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
197 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
198 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
199 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
200 * toplev.h (tree_rest_of_compilation): Declare it.
202 2003-08-29 Richard Henderson <rth@redhat.com>
204 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
205 * integrate.c (save_for_inline): Set saved_for_inline.
206 * c-semantics.c (genrtl_scope_stmt): Check it.
207 * toplev.c (wrapup_global_declarations): Check it.
208 (rest_of_handle_inlining): Set and check rtl_inline_init.
209 (rest_of_compilation): Remove out of date comment.
211 2003-08-29 Richard Henderson <rth@redhat.com>
213 * function.c (allocate_struct_function): New, split out of ...
214 (prepare_function_start, init_function_start): ... here.
215 * expr.c (init_expr): Use ggc_alloc_cleared.
216 * stmt.c (init_stmt_for_function): Likewise.
217 * tree.h (allocate_struct_function): Declare.
219 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
221 * config.gcc: Don't use negated character class in shell case
224 2003-08-29 Richard Henderson <rth@redhat.com>
226 * function.h (struct function): Move function_frequency and
227 max_jumptable_ents before start of bit field members.
229 2003-08-29 Richard Henderson <rth@redhat.com>
231 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
232 (fold_builtin_constant_p) ... not here.
234 2003-08-29 Richard Henderson <rth@redhat.com>
236 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
237 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
238 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
240 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
242 * builtins.def: Fix typos.
243 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
244 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
245 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
246 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
247 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
249 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
250 Use ATTR_MATHFN_FPROUNDING_ERRNO.
252 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
254 * config.gcc (i386-*-vsta): Fix obvious bogosity.
256 * fixinc/inclhack.def: Remove special cases for unsupported
257 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
258 * fixinc/fixincl.x: Regenerate.
260 2003-08-29 Mark Mitchell <mark@codesourcery.com>
262 * Makefile.in (cpp.info): Just state dependencies.
263 (gcc.info): Likewise.
264 (gccint.info): Likewise.
265 (gccinstall.info): Likewise.
266 (cppinternals.info): Likewise.
269 (gccint.dvi): Likewise.
270 (gccinstall.dvi): Likewise.
271 (cppinternals.dvi): Likewise.
277 (fsf-funding.7): Likewise.
278 ($(objdir)/%.info): New pattern rule.
281 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
283 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
284 (restage2): Likewise.
285 (restage3): Likewise.
286 (restage4): Likewise.
287 (restageprofile): Likewise.
288 (restagefeedback): Likewise.
289 (bubblestrap): Likewise.
291 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
293 * config.gcc: Narrow unsupported target match to avoid clobbering
296 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
298 * builtins.c (mathfn_built_in): Handle new math builtins.
300 2003-08-28 Per Bothner <per@bothner.com>
302 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
303 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
304 (_cpp_lex_buffer): Likewise.
305 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
307 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
309 * config/s390/s390.md ("*mulsi3_sign"): New insn.
310 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
311 ("mulsidi3"): ... this new insn.
312 ("umulsidi3"): New insn.
313 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
314 mixed-mode matching constraints.
315 ("udivmodsi4", "udivmoddisi3"): New insns.
316 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
318 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
320 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
321 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
322 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
323 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
324 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
325 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
326 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
327 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
328 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
329 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
330 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
331 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
332 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
333 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
334 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
335 * tree.c: Assign new type_nodes.
336 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
337 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
338 (float_ptr_type_node, double_ptr_type_node,
339 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
341 * doc/extend.texi: Document new builtins.
343 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
345 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
346 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
348 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
349 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
350 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
351 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
352 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
353 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
354 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
355 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
356 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
357 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
359 * doc/extend.texi: Document new builtins.
361 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
363 * fixinc/mkfixinc.sh: Remove special case code for unsupported
364 variants of i?86, powerpcle, and thumb.
365 * fixinc/mkfixinc.sh: Remove special case code for unsupported
366 arm and hppa variants.
368 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
370 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
371 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
372 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
373 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
374 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
375 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
376 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
377 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
378 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
379 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
381 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
382 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
383 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
384 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
385 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
386 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
387 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
388 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
389 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
390 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
391 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
392 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
393 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
394 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
395 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
396 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
397 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
398 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
399 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
400 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
401 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
402 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
403 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
404 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
405 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
406 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
407 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
408 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
409 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
410 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
411 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
413 * doc/extend.texi: Document new builtins.
415 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
417 * config/s390/s390.c (legitmate_constant_p): Use LARL on
418 zSeries machines even in 31-bit addressing mode.
419 (legitimate_reload_constant_p): Likewise.
420 (legitimize_pic_address): Likewise.
421 (legitimize_tls_address): Likewise.
422 (s390_split_branches): Likewise.
423 (s390_dump_pool): Likewise.
424 (s390_mainpool_finish): Likewise.
425 (s390_chunkify_start): Likewise.
426 (s390_select_rtx_section): Likewise.
427 * config/s390/s390.md ("doloop_si"): Likewise.
428 ("pool_start_31", "pool_end_31"): Likewise.
429 ("pool_start_64", "pool_end_64"): Likewise.
430 ("main_base_31_small", "main_base_31_large"): Likewise.
431 ("main_base_64"): Likewise.
432 ("reload_base_31", "reload_base_64"): Likewise.
433 ("*movsi_larl"): New insn.
434 ("cjump", "icjump"): Use long branches on zSeries machines.
436 ("call"): Use BRASL on zSeries machines.
437 ("call_value", "call_value_tls"): Likewise.
438 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
440 ("*bras", "*brasl", "*basr") ... these new insns.
441 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
442 "bas_31_r"): Remove and replace by ...
443 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
444 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
445 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
446 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
447 ("*return_si", "*return_di"): Remove and replace by ...
448 ("*return"): ... this new insn.
449 ("rotlsi3"): Allow on zSeries machines.
451 * config/s390/s390.c (legitimize_reload_constant_p): Use
452 LL/LH type instructions in z/Architecture mode.
453 * config/s390/s390.md ("*movsi_lli"): Likewise.
454 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
455 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
456 ("*extendqisi2"): Use LB in z/Architecture mode.
457 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
459 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
462 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
464 ("ptr_extend"): Allow only in 64-bit mode.
466 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
468 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
469 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
471 (main): Only use standard_startfile_prefix if native.
472 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
474 2003-08-27 Per Bothner <pbothner@apple.com>
476 * cpperror.c (print_location): Don't check for !pfile->buffer. That
477 test fails following my 08-21 change, and it seems unnecessary anyway.
478 (cpp_error): Likewise.
480 2003-08-27 Jason Merrill <jason@redhat.com>
482 * real.c (do_multiply): Initialize with memset.
484 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
486 * gcov.c (typedef struct arc_info): New field cs_count.
487 (accumulate_line_counts): Find cycles correctly.
489 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
491 * config/s390/s390.c (struct machine_function): Remove member
493 (s390_optimize_prolog): Replace TEMP_REG argument with
494 TEMP_USED and BASE_USED. Do not check get_pool_size ().
495 (general_s_operand): Accept all immediates before reload if
496 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
498 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
499 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
500 (s390_alloc_pool): New function.
501 (s390_new_pool): Call it.
502 (s390_dump_pool): Add REMOTE_LABEL argument.
503 (s390_chunkify_start): Add BASE_REG argument. Do not check
505 (s390_chunkify_finish): Add BASE_REG argument. Adapt
507 (s390_pool_count, s390_nr_constants): Remove.
508 (s390_output_constant_pool): Remove.
509 (s390_mainpool_start): New function.
510 (s390_mainpool_finish): New function.
511 (s390_mainpool_cancel): New function.
512 (s390_reorg): Implement main literal pool handling.
513 (s390_emit_prologue): Emit main_pool placeholder instead of
514 literal_pool_31 / literal_pool_64 insns.
515 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
516 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
517 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
518 ("main_base_31_small", "main_base_31_large"): New insns.
519 ("main_base_64", "main_pool"): New insns.
520 ("literal_pool_31", "literal_pool_64"): Remove.
522 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
524 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
526 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
528 * fixinc/fixincl.x: Regenerate.
530 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
532 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
533 (L_ieee754_dp): New. Include ieee754-df.S.
534 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
535 and compilation in apcs-26 mode.
536 * arm/ieee754-df.S: Likewise.
537 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
538 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
540 2003-08-27 Nicolas Pitre <nico@cam.org>
542 * arm/ieee754-sf.S: New.
543 * arm/ieee754-df.S: New.
545 2003-08-27 Jakub Jelinek <jakub@redhat.com>
547 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
548 and restore it if returning NULL.
550 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
552 * calls.c (initialize_argument_information): If an argument has no
553 stack space associated with it, and BLOCK_REG_PADDING is defined,
554 use it to decide at which end the argument should be padded.
555 * function.c (assign_parms): Allocate BLKmode stack slots.
556 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
557 (mips_pad_reg_upward): Declare.
558 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
559 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
560 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
561 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
562 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
563 (mips_expand_call): Remove code for generating structure shifts.
564 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
565 types unless using the EABI.
566 (function_arg_advance): Don't generate shift instructions.
567 (function_arg): Don't return them. Don't short-circuit the
568 check for double structure chunks for DFmode arguments.
569 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
570 (mips_expand_prologue): Remove code to emit structure shifts.
571 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
572 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
573 comments to say that only structure returns are a problem.
575 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
577 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
578 Fix to match produced versions.
579 * fixinc/inclhack.def (longlong_t): New disabled test, ported
581 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
583 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
584 ported from fixinc.ptx.
586 2003-08-26 Per Bothner <pbothner@apple.com>
588 * cpplib.h (struct cpp_token): Change type of field line to fileline.
589 (cpp_error_with_line): Use fileline for appropriate parameter.
590 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
591 (struct cpp_reader): Likewise for fields line and directive_line.
592 (_cpp_begin_message): Use fileline for appropriate parameter.
593 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
594 cpp_error): Use fileline for appropriate parameters and variables.
595 (print_location): New local lin, since it is not a fileline.
597 2003-08-26 Roger Sayle <roger@eyesopen.com>
600 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
601 (FLOAT_TYPE_P): Define in terms of these two new macros.
602 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
603 for complex floating point types.
605 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
607 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
608 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
609 s390_output_pool_entry.
611 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
613 * fixinc/inclhack.def (svr4_preproc_lint_on,
614 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
615 fixes, ported from fixinc.svr4.
617 2003-08-26 Mark Mitchell <mark@codesourcery.com>
619 * doc/install.texi (Prerequisites): Mention GNU make requirement.
621 * Makefile.in (AR_FOR_TARGET): Export it.
622 (AR_CREATE_FOR_TARGET): Likewise.
623 (AR_FLAGS_FOR_TARGET): Likewise.
624 (AR_EXTRACT_FOR_TARGET): Likewise.
626 (BUILD_PREFIX): Likewise.
627 (BUILD_PREFIX_1): Likewise.
629 (GCC_FOR_TARGET): Likewise.
630 (INCLUDES): Likewise.
631 (INSTALL_DATA): Likewise.
632 (LIB1ASMSRC): Likewise.
633 (LIBGCC2_CFLAGS): Likewise.
634 (MACHMODE_H): Likewise.
635 (NM_FOR_TARGET): Likewise.
636 (RANLIB_FOR_TARGET): Likewise.
637 (libsubdir): Likewise.
639 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
641 (libgcc.a): Don't pass them here.
642 (stmp-multilib): Or here.
643 (install-libgcc): Or here.
644 (install-multilib): Or here.
645 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
646 (stage1_build): Or here.
648 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
650 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
651 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
653 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
655 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
656 "*fmaddsf", "*fmsubsf"): New insns.
658 2003-08-26 Roger Sayle <roger@eyesopen.com>
660 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
661 (C1*C2)/X when unsafe math optimizations are allowed.
662 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
663 math optimizations. Minor code clean-ups. Recursively call
664 fold when constructing sub-expressions.
666 2003-08-26 Roger Sayle <roger@eyesopen.com>
668 * builtins.c (fold_builtin_bitop): New function to perform constant
669 folding of ffs, clz, ctz, popcount and parity builtin functions
670 and their long and long long variants (such as ffsl and ffsll).
671 (fold_builtin): fold_builtin_bitop when appropriate.
672 * simplify-rtx.c (simplify_unary_operation): Honor both
673 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
674 evaluating clz and ctz at compile-time, for operands wider
677 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
679 * builtins.c (build_function_call_expr): Don't set
680 TREE_SIDE_EFFECTS here.
681 * expr.c (emit_block_move_via_libcall): Likewise.
682 (clear_storage_via_libcall): Likewise.
683 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
686 * gcse.c (is_too_expensive): New function.
687 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
689 2003-08-25 Zack Weinberg <zack@codesourcery.com>
691 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
692 commented-out logic to use DCE threads (if present), add
693 support for POSIX threads.
694 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
695 #defines for -pthread. Add -lpthread to LIB_SPEC when
696 -pthread. In both cases take -mt as a synonym for -pthread
697 for acc compatibility.
698 Define GTHREAD_USE_WEAK to 0.
699 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
700 Remove old logic for DCE threads from LIB_SPEC.
701 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
703 2003-08-25 Roger Sayle <roger@eyesopen.com>
705 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
706 return 0 for invalid argument types. Instead drop through to a
707 call of expand_call at the bottom of function. If op is SQRT,
708 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
710 2003-08-25 Richard Henderson <rth@redhat.com>
712 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
713 result when op0 is SImode.
715 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
717 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
719 * fixinc/fixincl.x: Regenerate.
720 * fixinc/tests/base/sys/signal.h: Regenerate.
722 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
724 * combine.c (simplify_comparison): Re-enable widening of comparisons
725 with non-paradoxical subregs of non-REG expressions.
727 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
729 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
731 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
733 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
735 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
737 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
738 * c-pretty-print.h (c_pretty_printer): Now typedef to the
739 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
740 (struct c_pretty_print_info): Document. Add new fields.
741 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
742 (pp_direct_abstract_declarator): New macro.
743 (pp_ptr_operator): Likewise.
744 (pp_simple_type_specifier): Likewise.
745 (pp_expression): Likewise.
746 (pp_parameter_list): Rename from pp_parameter_declaration.
747 * c-pretty-print.c (pp_c_whitespace): Now a function.
748 (pp_c_left_paren): Likewise.
749 (pp_c_right_paren): Likewise.
750 (pp_c_dot): Likewise.
751 (pp_c_ampersand): Likewise.
752 (pp_c_arrow): Likewise.
753 (pp_c_semicolon): Likewise.
754 (pp_c_type_cast): New function.
755 (pp_c_space_for_pointer_operator): Likewise.
756 (pp_c_call_argument_list): Likewise.
757 (pp_c_cv_qualifier): Adjust prototype.
758 (pp_c_type_qualifier_list): Likewise.
759 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
760 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
761 Adjust to follow standard grammar.
762 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
763 REFERENCE_TYPE. Tidy.
764 (pp_c_parameter_type_list): Adjust prototype. Tidy.
765 (pp_c_parameter_declaration): Remove.
766 (pp_c_abstract_declarator): Adjust prototype.
767 (pp_c_direct_abstract_declarator): Likewise.
768 (pp_c_type_id): Likewise.
769 (pp_c_storage_class_specifier): Likewise.
770 (pp_c_function_specifier): Likewise.
771 (pp_c_declaration_specifiers): Likewise.
772 (pp_c_direct_declarator): Likewise.
773 (pp_c_declarator): Likewise.
774 (pp_c_declarator): Likewise.
775 (pp_c_declaration): Likewise.
776 (pp_c_attributes): Likewise. Tidy.
777 (pp_c_function_definition): Adjust prototype.
778 (pp_c_char): Likewise.
779 (pp_c_string_literal): Likewise.
780 (pp_c_integer_constant): Likewise.
781 (pp_c_character_constant): Likewise.
782 (pp_c_bool_constant): Likewise.
783 (pp_c_enumeration_constant): Likewise.
784 (pp_c_floating_constant): Likewise.
785 (pp_c_constant): Likewise.
786 (pp_c_identifier): Likewise.
787 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
788 (pp_c_initializer): Adjust prototype.
789 (pp_c_init_declarator): Likewise.
790 (pp_c_initializer_list): Likewise.
791 (pp_c_id_expression): Likewise.
792 (pp_c_postfix_expression): Likewise.
793 (pp_c_expression_list): Likewise.
794 (pp_c_unary_expression): Likewise.
795 (pp_c_cast_expression): Likewise.
796 (pp_c_multiplicative_expression): Likewise.
797 (pp_c_additive_expression): Likewise.
798 (pp_c_shift_expression): Likewise.
799 (pp_c_relational_expression): Likewise.
800 (pp_c_equality_expression): Likewise.
801 (pp_c_and_expression): Likewise.
802 (pp_c_exclusive_or_expression): Likewise.
803 (pp_c_inclusive_or_expression): Likewise.
804 (pp_c_logical_and_expression): Likewise.
805 (pp_c_logical_or_expression): Likewise.
806 (pp_c_conditional_expression): Likewise.
807 (pp_c_assignment_expression): Likewise.
808 (pp_c_expression): Likewise. Tidy.
809 (pp_c_statement): Likewise. Document.
810 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
812 * c-lang.c (c_initialize_diagnostics): Update.
813 * c-common.h (strip_pointer_operator): Declare.
814 * c-common.c (strip_pointer_operator): Define.
816 2003-08-25 Mark Mitchell <mark@codesourcery.com>
819 * tree.h (build_method_type_directly): Declare.
820 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
821 (vector_size_helper): Likewise.
822 * tree.c (build_method_type_directly): New function.
823 (build_method_type): Use it.
825 2003-08-24 Richard Henderson <rth@redhat.com>
827 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
828 for 16-byte vector modes if sse not enabled; warn for abi change.
829 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
831 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
833 * rtlanal.c (may_trap_p): Simplify an integer comparison.
835 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
837 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
838 comment. Enable for DYNIX/ptx systems (when they switch to
839 regular fixincludes).
840 * fixinc/fixincl.x: Regenerate.
842 2003-08-23 Jason Eckhardt <jle@rice.edu>
844 * config/i860/t-i860: New.
845 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
847 2003-08-23 Jakub Jelinek <jakub@redhat.com>
849 * c-decl.c (pushdecl): Only put decls which finish_struct will do
850 something about onto incomplete chain.
851 (finish_struct): If not removing type from incomplete
854 Wed Aug 20 12:08:55 CEST 2003 Jan Hubicka <jh@suse.cz>
857 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
860 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
861 const_0_to_15_operand, const_0_to_255_operand): New predicates.
862 * i386.h (PREDICATE_CODES): Add these.
863 * i386.c (pinsrw and pextrw patterns): Use them.
866 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
869 * expr.c (convert_modes): Deal properly with integer to vector
873 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
875 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
877 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
878 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
879 ("*movhi"): ... this.
880 ("movqi", "*movqi"): Likewise.
881 ("movqi_64"): Remove.
882 ("*zero_extendhisi2_31"): Change predicate to s_operand.
884 2003-08-23 Dale Johannesen <dalej@apple.com>
885 * calls.c (emit_library_call_value_1): Fix obvious errors in
886 arguments to emit_group_store.
888 2003-08-23 Jason Eckhardt <jle@rice.edu>
890 * calls.c (emit_library_call_value_1): Remove code related
891 to LIBGCC_NEEDS_DOUBLE.
892 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
893 * doc/tm.texi: Likewise.
894 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
896 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
898 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
900 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
902 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
903 as well. Put memory references in the varargs alias set.
904 (mips_expand_prologue): Remove varargs handling from here.
906 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
908 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
909 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
910 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
911 for function pointer calls.
912 * config/s390/s390.md ("*negdi2_31"): Likewise.
914 2003-08-23 Roger Sayle <roger@eyesopen.com>
916 * combine.c (apply_distributive_law): Correct comment.
918 2003-08-23 Jason Eckhardt <jle@rice.edu>
920 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
922 2003-08-22 Jason Eckhardt <jle@rice.edu>
924 * config/i860/i860.c (i860_build_va_list): Create the va_decl
925 declaration. Document the va_list structure.
926 (i860_va_start): Initialize the va_list structure.
927 (i860_va_arg): Rewrite completely.
928 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
929 * config/i860/varargs.asm: Do not allocate or initialize
930 a va_list. Return the address of the register save area.
932 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
934 * config/iq2000/iq2000.c: Fix comment typos.
935 * config/iq2000/iq2000.md: Likewise.
937 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
939 * config/iq2000/iq2000.c: Follow spelling conventions.
940 * config/iq2000/iq2000.h: Likewise.
941 * config/mn10300/mn10300.c: Likewise.
943 2003-08-22 Jason Eckhardt <jle@rice.edu>
945 * config/i860/i860.c (output_move_double): Don't set latehalf
946 to zero for CONST_INT (since it could be, e.g., -1).
948 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
949 (MODSI3_LIBCALL): ...with this one.
950 (UREMSI3_LIBCALL): Replace this macro...
951 (UMODSI3_LIBCALL): ...with this one.
953 2003-08-22 Jason Eckhardt <jle@rice.edu>
955 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
956 (output_delayed_branch): Remove prototype.
957 (single_insn_src_p): Remove prototype.
958 * config/i860/i860.c (single_insn_src_p): Remove function.
959 (output_delayed_branch): Remove function.
960 (output_delay_insn): Remove function.
961 (va_start): Remove unconditional test and dead code, re-format.
962 Fix coding style and spelling problems in various comments.
963 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
964 (blockage pattern): ...and use it here.
965 (all define_peephole patterns related to delayed branches): Remove.
966 Fix coding style and spelling problems in various comments.
968 2003-08-22 Jason Eckhardt <jle@rice.edu>
970 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
971 Remove all uses of the PARAMS macro. Remove superflous prototypes.
972 Convert all function definitions from traditional to ISO C90 syntax.
973 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
974 with 'GCC'. Remove all uses of the PARAMS macro.
975 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
976 * config/i860/i860.md: Likewise.
977 * config/i860/sysv4.h: Likewise.
978 * config/i860/varargs.asm: Likewise.
980 2003-08-22 Jason Eckhardt <jle@rice.edu>
982 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
984 (tdesc_section): Add prototype.
985 Update copyright dates.
986 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
987 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
988 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
990 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
991 for '%d' where necessary.
992 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
993 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
994 by UNITS_PER_WORD when referencing (likewise for .floats).
995 (I860_SVR4_VARARGS): Rename...
996 (I860_SVR4_VA_LIST): ...to this.
997 Call build() with 't' rather than 'field'.
998 (i860_rtx_costs): New function.
999 (TARGET_RTX_COSTS): Define.
1000 (i860_internal_label): New function.
1001 (TARGET_ASM_INTERNAL_LABEL): Define.
1002 (i860_file_start): New function.
1003 Update copyright dates.
1004 * config/i860/i860.h (CPP_PREDEFINES): Remove.
1005 (TARGET_CPU_CPP_BUILTINS): Define.
1006 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
1007 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
1008 (ASM_FILE_START): Remove.
1009 (ASM_FILE_START_1): Remove.
1010 (ASM_GLOBALIZE_LABEL): Remove.
1011 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
1012 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
1013 with targetm.asm_out.internal_label.
1014 Update copyright dates.
1015 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
1016 (CPP_PREDEFINES): Remove.
1017 (TARGET_OS_CPP_BUILTINS): Define.
1018 (GLOBAL_ASM_OP): Define.
1019 (ASM_FILE_START): Remove.
1020 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
1021 (TARGET_ASM_FILE_START): Define.
1022 Update copyright dates.
1024 2003-08-22 Jason Eckhardt <jle@rice.edu>
1026 * gcc/config.gcc (i860-*-sysv4*): Add target.
1027 * config/i860/i860-protos.h: New.
1028 * config/i860/i860.c: New.
1029 * config/i860/i860.h: New.
1030 * config/i860/i860.md: New.
1031 * config/i860/sysv4.h: New.
1032 * config/i860/varargs.asm: New.
1033 * config/i860/x-sysv4: New.
1035 2003-08-22 Jason Eckhardt <jle@rice.edu>
1037 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
1038 Remove all uses of PARAMS macro.
1039 Convert all function definitions to ISO C90 syntax.
1040 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
1041 * config/pa/fptr.c: Likewise.
1042 * config/pa/lib2funcs.asm: Likewise.
1043 * config/pa/long_double.h: Likewise.
1044 * config/pa/milli64.S: Likewise.
1045 * config/pa/pa-64.h: Likewise.
1046 * config/pa/pa-hpux.h: Likewise.
1047 * config/pa/pa-hpux10.h: Likewise.
1048 * config/pa/pa-hpux11.h: Likewise.
1049 * config/pa/pa-linux.h: Likewise.
1050 * config/pa/pa-modes.def: Likewise.
1051 * config/pa/pa-osf.h: Likewise.
1052 * config/pa/pa-pro-end.h: Likewise.
1053 * config/pa/pa.md: Likewise.
1054 * config/pa/pa32-linux.h: Likewise.
1055 * config/pa/pa64-linux.h: Likewise.
1056 * config/pa/pa64-hpux.h: Likewise.
1057 * config/pa/pa64-regs.h: Likewise.
1058 * config/pa/quadlib.c: Likewise.
1059 * config/pa/rtems.h: Likewise.
1060 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
1061 all uses of the PARAMS macro.
1062 * config/pa/pa.h: Likewise.
1063 * config/pa/som.h: Likewise.
1065 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
1066 Remove all uses of PARAMS macro.
1067 Convert all function definitions to ISO C90 syntax.
1068 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
1069 Remove all uses of PARAMS macro.
1070 * config/iq2000.h: Remove all uses of PARAMS macro.
1071 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
1073 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
1075 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
1076 * config/s390/s390.c (gen_consttable): Remove.
1077 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
1078 (s390_output_pool_entry): New function.
1079 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
1080 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
1081 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
1082 (UNSPECV_POOL_ENTRY): ... this new constant.
1083 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
1084 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
1085 ("*pool_entry"): ... and replace by this new insn.
1086 ("literal_pool_31"): Do not emit anchor label if pool empty.
1088 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
1089 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
1090 (s390_fixup_clobbered_return_reg): Remove.
1091 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
1092 (s390_return_addr_rtx): Always retrieve return address from save area
1093 slot. Use save_return_addr_p to force slot to be filled.
1094 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
1096 2003-08-22 Chris Demetriou <cgd@broadcom.com>
1098 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
1099 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
1100 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
1101 around SB-1 errata if TARGET_FIX_SB1 is set.
1102 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
1103 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
1105 2003-08-22 Roger Sayle <roger@eyesopen.com>
1107 * hashtable.c (ht_expand): Avoid calculating rehash for the common
1108 case that the first probe hits an empty hash table slot.
1110 2003-08-22 Mark Mitchell <mark@codesourcery.com>
1112 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
1114 2003-08-22 Mark Mitchell <mark@codesourcery.com>
1116 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
1117 (ptr_extend_plus_imm): ... this.
1118 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
1119 optimization in C++.
1120 (ia64_output_mi_thunk): Support ILP32 mode.
1122 2003-08-22 bernardo innocenti <bernie@develer.com>
1124 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
1126 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
1128 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1130 * config/i386/i386.c (const_int_1_operand): Simplify an
1133 2003-08-22 Alan Modra <amodra@bigpond.net.au>
1135 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
1136 * config/rs6000/ppc64-fp.c: Likewise.
1138 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1140 * cfgcleanup.c: Fix comment typos.
1141 * emit-rtl.c: Likewise.
1142 * optabs.c: Likewise.
1143 * ra-build.c: Likewise.
1144 * rtlanal.c: Likewise.
1147 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1149 * c-decl.c: Fix comment formatting.
1150 * cfgrtl.c: Likewise.
1151 * combine.c: Likewise.
1152 * convert.c: Likewise.
1153 * dominance.c: Likewise.
1154 * dwarf2out.c: Likewise.
1155 * dwarfout.c: Likewise.
1156 * expmed.c: Likewise.
1157 * fold-const.c: Likewise.
1159 * genattrtab.c: Likewise.
1160 * ggc-common.c: Likewise.
1161 * mips-tfile.c: Likewise.
1162 * regmove.c: Likewise.
1164 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1166 * builtin-attrs.def: Fix comment formatting.
1167 * c-pretty-print.c: Likewise.
1168 * diagnostic.h: Likewise.
1169 * langhooks.h: Likewise.
1170 * recog.c: Likewise.
1171 * simplify-rtx.c: Likewise.
1172 * tree.def: Likewise.
1174 2003-08-22 Bernardo Innocenti <bernie@develer.com>
1176 * config/m68k/m68k-protos.h: Convert to ISO C90.
1177 * config/m68k/m68k.c: Likewise.
1179 2003-08-21 Bernardo Innocenti <bernie@develer.com>
1180 Paul Dale <pauli@snapgear.com>
1181 Peter Barada <peter@baradas.org>
1183 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
1186 2003-08-21 Zack Weinberg <zack@codesourcery.com>
1188 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
1189 * config.gcc (*-*-openbsd): Don't set tm_file.
1190 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
1191 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
1192 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
1193 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
1194 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
1195 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
1196 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
1197 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
1198 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
1199 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
1200 xscale-*-coff): Use explicit and complete lists of target headers
1201 to include. Move definitions to tm_defines where appropriate.
1202 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
1203 not-yet-contributed configuration.
1205 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
1206 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
1207 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
1208 * config/i386/nto.h, config/iq2000/iq2000.h,
1209 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
1210 * config/m68k/linux.h, config/m68k/m68k-aout.h
1211 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
1212 * config/m68k/netbsd.h, config/m68k/openbsd.h
1213 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
1214 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
1215 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
1216 Remove includes of other target config headers, and
1217 definitions of macros moved to tm_defines lists. Add #undefs
1218 where now necessary to prevent redefinition warnings.
1220 * config/h8300/coff.h: New file split out of...
1221 * config/h8300/elf.h: ...here.
1222 * config/m68k/hp320base.h: New file split out of...
1223 * config/m68k/hp320.h: ...here.
1224 * config/rs6000/lynxbase.h: New file split out of...
1225 * config/rs6000/lynx.h: ...here.
1227 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
1228 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
1230 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
1231 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
1232 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
1233 Remove unnecessary #ifndef.
1234 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
1235 [under IN_LIBGCC2] with config/.
1237 2003-08-21 Per Bothner <pbothner@apple.com>
1239 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
1241 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
1242 by return_at_eof check. Always call _cpp_pop_buffer at end.
1244 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
1247 * config/h8300/h8300.md (two anonymous patterns): Remove.
1249 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
1251 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
1252 * config/mips/mips.c (function_arg_pass_by_reference): Never return
1255 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
1257 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
1258 and similarly in (A | C) == D where C & ~D != 0.
1260 2003-08-20 Geoffrey Keating <geoffk@apple.com>
1263 * configure.in: When testing with_libs and with_headers, treat
1264 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
1265 * configure: Regenerate.
1267 2003-08-20 Peter Barada <peter@baradas.org>
1269 * longlong.h (umul_ppmm): Add ColdFire support.
1271 2003-08-20 Peter Barada <peter@baradas.org>
1272 Bernardo Innocenti <bernie@develer.com>
1274 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
1275 * config/m68k/m68k.h: Likewise.
1276 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
1277 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
1278 * config/m68k/linux.h: Likewise.
1279 * config/m68k/m68k.c: Likewise.
1280 * config/m68k/m68k.md: Likewise.
1281 * config/m68k/m68kelf.h: Likewise.
1282 * config/m68k/netbsd-elf.h: Likewise.
1283 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
1285 2003-08-20 Bernardo Innocenti <bernie@develer.com>
1287 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
1288 * config/m68k/m68k.md: Likewise.
1290 2003-08-20 Mark Mitchell <mark@codesourcery.com>
1294 2003-08-19 Mark Mitchell <mark@codesourcery.com>
1295 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
1296 types with precisions other than those given by native machine
1299 2003-08-20 Gunther Nikl <gni@gecko.de>
1301 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
1302 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
1303 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
1304 * config/m68k/m68k.md (anonymous define_insn): Likewise
1305 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
1306 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
1307 code selected by NO_ASM_FMOVECR
1309 2003-08-20 Gunther Nikl <gni@gecko.de>
1311 * config/m68k/m68k.c (output_move_const_into_data_reg,
1312 output_move_himode): unify MOTOROLA/MIT handling of moveq
1313 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
1316 2003-08-20 Gunther Nikl <gni@gecko.de>
1318 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
1320 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
1321 HOST_WIDE_INT_PRINT_DEC with %wd
1323 2003-08-20 Loren James Rittle <ljrittle@acm.org>
1325 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
1328 2003-08-20 Roger Sayle <roger@eyesopen.com>
1331 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
1332 operands before calling tree_int_cst_lt when performing associative
1335 2003-08-20 Jason Merrill <jason@redhat.com>
1337 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
1338 (EXPR_CHECK): Don't check for 'r' or 's' if we're
1339 checking IS_EXPR_CODE_CLASS.
1340 * calls.c (calls_function_1): Likewise.
1341 * fold-const.c (fold): Likewise.
1342 * tree.c (iterative_hash_expr): Likewise.
1343 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
1345 2003-08-20 Gunther Nikl <gni@gecko.de>
1347 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
1348 depending on MOTOROLA_BSR
1349 * config/m68k/m68k.md (anonymous define_insn): Likewise
1351 2003-08-20 Jason Merrill <jason@redhat.com>
1353 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
1354 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
1355 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
1356 * dojump.c (do_jump): Likewise.
1357 * fold-const.c (operand_equal_p, fold): Likewise.
1358 (tree_expr_nonnegative_p): Likewise.
1360 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
1361 TYPE_USER_ALIGN for FIELD_DECLs.
1363 * attribs.c (decl_attributes): Rebuild the function pointer type after
1364 changing the target type.
1365 * tree.c (get_qualified_type): Also check that the attributes match.
1367 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
1369 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
1370 * objc/config-lang.in (stagestuff): ... to here.
1372 2003-08-19 Mark Mitchell <mark@codesourcery.com>
1375 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
1376 NOP_EXPR) when necessary.
1377 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
1378 types with precisions other than those given by native machine
1381 2003-08-19 Geoffrey Keating <geoffk@apple.com>
1383 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
1384 because some macro is defined.
1386 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
1388 * config/i386/darwin.h (ASM_SPEC): New.
1389 (SUBTARGET_EXTRA_SPECS): New.
1390 * config/rs6000/darwin.h (ASM_SPEC): New.
1391 (SUBTARGET_EXTRA_SPECS): New.
1392 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
1393 a cross-compiler between two different processors on Darwin.
1394 * configure: Regenerate.
1396 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
1398 * builtins.c: Fix comment typos.
1399 * c-common.c: Likewise.
1400 * c-decl.c: Likewise.
1401 * c-pretty-print.c: Likewise.
1402 * cfgbuild.c: Likewise.
1403 * cfglayout.c: Likewise.
1404 * cfgloopanal.c: Likewise.
1405 * cgraphunit.c: Likewise.
1406 * cppfiles.c: Likewise.
1407 * dwarfout.c: Likewise.
1409 * fold-const.c: Likewise.
1411 * ggc-page.c: Likewise.
1412 * haifa-sched.c: Likewise.
1413 * pretty-print.c: Likewise.
1416 * value-prof.c: Likewise.
1418 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
1420 * c-decl.c: Follow spelling conventions.
1421 * cppfiles.c: Likewise.
1423 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
1425 * c-common.c: Fix comment formatting.
1426 * c-common.h: Likewise.
1427 * c-decl.c: Likewise.
1428 * cppinit.c: Likewise.
1429 * cpplib.h: Likewise.
1430 * emit-rtl.c: Likewise.
1431 * input.h: Likewise.
1432 * line-map.h: Likewise.
1435 * simplify-rtx.c: Likewise.
1437 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
1439 * unwind-c.c: Add libgcc-style exception.
1440 * unwind-dw2.c: Likewise.
1441 * unwind-pe.h: Likewise.
1442 * unwind-sjlj.c: Likewise.
1443 * unwind.inc: Likewise.
1445 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
1447 PR c/5582 PR c++/10538
1448 * langhooks-def.h (lhd_decl_uninit): Declare.
1449 (LANG_HOOKS_DECL_UNINIT): New macro.
1450 (LANG_HOOKS_INITIALIZER): Adjust.
1451 * langhooks.h (struct lang_hooks): Add new field
1453 * langhooks.c (lhd_decl_uninit): Define.
1454 * c-common.c (c_decl_uninit_1): New function.
1455 (c_decl_uninit): New function.
1456 (warn_init_self): Define.
1457 * c-common.h (c_decl_uninit): Declare.
1458 (warn_init_self): Declare.
1459 * c.opt: Introduce -Winit-self.
1460 * c-opts.c (c_common_handle_options): Set warn_init_self.
1461 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
1462 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
1463 * function.c (uninitialized_vars_warning): Call the language hook.
1464 * doc/invoke.texi: Document -Winit-self.
1466 2003-08-19 Chris Demetriou <cgd@broadcom.com>
1468 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
1469 to use better predicates and constraints. Define new
1470 instruction to handle "trap_if" with DI-mode arguments.
1471 (conditional_trap): FAIL if trap code is not 0.
1473 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
1475 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
1476 strstr with $pb to a strcompare with "<pic base>"
1477 (ix86_output_addr_diff_elt): Output the real pic base.
1479 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1481 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
1482 (LANG_HOOKS_INITIALIZER): Correct.
1483 * c-lang.c: Likewise.
1485 2003-08-19 Jan Hubicka <jh@suse.cz>
1487 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
1488 (cgraph_varpool_mark_needed_node): Likewise.
1489 * cgraph.h (notice_global_symbol): Declare
1490 * varasm.c (notice_global_symbol): Break out from ...
1491 (assemble_start_function): ... here; update for variables.
1492 (assemble_variable): Use notice_global_symbol.
1494 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
1496 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
1497 expect SFmode and DFmode arguments to be passed in FPRs,
1498 regardless of the underlying type.
1500 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
1503 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
1504 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
1506 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
1509 * c-typeck.c (set_init_index): Check for negative index.
1511 2003-08-18 Bob Wilson <bob.wilson@acm.org>
1513 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
1515 * config/xtensa/crtn.asm (_init, _fini): Likewise.
1516 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
1517 __umodsi3, __modsi3): Likewise.
1518 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
1521 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
1523 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
1525 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
1527 * config/mips/mips.md: Quote C code in braces. Remove use of
1528 fake const0_rtx operands. Remove double backslashes. Use \;.
1529 Remove workarounds for bogus warnings.
1531 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
1533 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
1534 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
1535 rather than TARGET_MIPS4300.
1536 (mulsf3_internal, mulsf3_r4300): Likewise.
1538 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
1540 * config/mips/mips.md: Renumber unspecs. Clean up comments.
1542 2003-08-17 Roger Sayle <roger@eyesopen.com>
1544 * simplify-rtx.c (associative_constant_p): New function to test
1545 whether an RTX expression is an immediate constant.
1546 (simplify_associative_operation): New function to perform some
1547 reassociation optimizations of associative binary expressions.
1548 (simplify_binary_operation): Use simplify_associative_operation
1549 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
1550 Floating point expressions are only reassociated when unsafe
1551 math optimizations are permitted.
1553 2003-08-17 Andreas Jaeger <aj@suse.de>
1555 * config/alpha/alpha.md: Remove usage of PARAMS.
1557 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
1558 * config/i386/i386-interix.h: Likewise.
1559 * config/i386/winnt.c: Likewise.
1560 * config/i386/cygming.h: Likewise.
1561 * config/i386/cygwin2.c: Likewise.
1562 * config/darwin.c: Likewise.
1563 * config/darwin-c.c: Likewise.
1564 * config/darwin-protos.h: Likewise.
1565 * config/darwin.h: Likewise.
1566 * config/s390/s390-protos.h: Likewise.
1567 * config/s390/s390.c: Likewise.
1568 * config/ia64/ia64.c: Likewse
1569 * config/ia64/ia64-protos.h: Likewise.
1570 * config/ia64/ia64-c.c: Likewise.
1572 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1574 * config/sparc/sparc.c: Convert to ISO C.
1576 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
1577 * config/sparc/sparc.c: Likewise.
1579 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
1582 * stmt.c (expand_expr_stmt_value): Don't warn about any void
1585 2003-08-16 Jan Hubicka <jh@suse.cz>
1587 * i386.c (ix86_fntype_regparm): Rename from ...
1588 (ix86_function_regparm): ... this one; add fastcall and local
1590 (ix86_function_ok_for_sibcall): Update.
1591 (ix86_return_pops_args): Likewise.
1592 (init_cumulative_args): Likewise.
1593 (x86_can_output_mi_thunk): Likewise.
1594 (function_arg): Fix formating.
1595 (x86_this_parameter): Fix fastcall.
1596 (x86_output_mi_thunk): Likewise.
1598 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
1599 body as reachable; mark nested functions as needed too.
1600 (dump_cgraph): Do not output global.calls.
1601 * cgraph.h (cgraph_global_info): Kill.
1602 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
1603 (record_call_1): Speedup.
1604 (cgraph_analyze_function): Break out from ...; compute inlining
1606 (cgraph_finalize_compilation_unit): ... here.
1607 (cgraph_mark_inline): Kill computation of calls.
1608 (cgraph_decide_inlining): Do not compute most of initial values.
1610 2003-08-14 Roger Sayle <roger@eyesopen.com>
1612 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
1613 to negate if either operand is easy to negate, if we don't care
1614 about sign-dependent rounding.
1615 (negate_expr): Make the logic to negate a REAL_CST explicit.
1616 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
1617 that's easy to negate, if we don't honor sign-dependent rounding.
1618 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
1619 negate, and the symmetric A * -B as -A * B if A is easy to negate.
1620 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
1621 -C/D if B and C are cheap to negate. Add an explicit rule to
1622 optimize X/-1.0 as -X when we don't care about signaling NaNs.
1624 2003-08-14 Zack Weinberg <zack@codesourcery.com>
1626 * Makefile.in (tm_file): Rename tm_include_list.
1627 (tm_p_file): Rename tm_p_include_list.
1628 (build_xm_file): Rename build_xm_include_list.
1629 (host_xm_file): Rename host_xm_include_list.
1630 (xm_file): Rename xm_include_list.
1631 (xm_file_list): Add to be substituted.
1632 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
1634 (bt-load.o): Add missing dependency on $(TM_H).
1635 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
1636 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
1637 build_xm_file, generate both *_file_list and *_include_list
1638 values from it. (xm_file_list was formerly not being generated.)
1639 In *_include_list, prefix the names of all headers found in
1640 $(srcdir)/config with config/. In each loop, consider only
1641 the special case files that can actually appear in that list.
1642 AC_SUBST all *_file_list and all *_include_list variables; do
1643 not AC_SUBST the plain *_file variables.
1644 * configure: Regenerate.
1646 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1648 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
1650 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1652 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
1654 (attr_length_call): Include it here. Improve length estimate for
1656 (output_call): Use targetm.binds_local_p.
1658 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1660 * builtins.c (CASE_MATHFN): New helper macro.
1661 (mathfn_built_in): Simplify and sort.
1663 * protoize.c (substr): Delete, callers changed to `strstr'.
1665 2003-08-13 Zack Weinberg <zack@codesourcery.com>
1667 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
1668 * config/iq2000/xm-iq2000.h: Delete file.
1670 2003-08-13 Geoffrey Keating <geoffk@apple.com>
1672 * gengtype.c (walk_type): Process a subobject before processing
1673 the pointer that points to the subobject.
1675 2003-08-13 Per Bothner <pbothner@apple.com>
1677 * regclass.c (init_reg_modes): Make non-static.
1678 Rename to init_reg_modes_once per new naming convention.
1679 (init_regs): Don't call init_reg_modes here.
1680 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
1681 * rtl.h (init_reg_modes_once): New declaration.
1682 * toplev.c (backend_init): Call init_regs after init_emit_once.
1684 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
1686 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
1687 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
1689 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
1691 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
1692 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
1694 2003-08-13 Dale Johannesen <dalej@apple.com>
1696 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
1697 handling of decrement-and-branch farther than 32 bits.
1699 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
1701 * configure.in (make_compare_target): Move test to ...
1702 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
1703 * configure: Regenerate.
1705 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
1707 * config/mips/iris6.h: Convert to C90 prototypes.
1708 * config/mips/irix6-libc-compat.c: Likewise.
1709 * config/mips/mips-protos.h: Likewise.
1710 * config/mips/mips.c: Likewise.
1712 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
1714 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
1715 for selected machines. Comment heavily.
1716 fixinc/fixincl.x: Rebuild.
1717 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
1719 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
1721 * config/mips/mips.h: Tweak various comments.
1722 * config/mips/mips.c: Likewise.
1724 2003-08-11 James E Wilson <wilson@tuliptree.org>
1726 PR optimization/11319
1728 * alias.c (find_base_value, case REG): Return 0 not src if no base
1731 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1733 * gcse.c (gmalloc): Fix last change.
1735 2003-08-11 Roger Sayle <roger@eyesopen.com>
1737 * simplify-rtx.c (simplify_binary_operation): Replace calls to
1738 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
1739 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
1740 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
1742 2003-08-11 Roger Sayle <roger@eyesopen.com>
1744 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
1745 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
1746 typecode for an ABS_EXPR.
1748 * doc/c-tree.texi: Document ABS_EXPR.
1750 2003-08-11 Roger Sayle <roger@eyesopen.com>
1752 * fold-const.c (fold): Optimize any associative floating point
1753 operator with -funsafe-math-optimizations, not just MULT_EXPR.
1755 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
1757 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
1758 information in SHmedia case too.
1759 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
1761 (__set_fpscr): Use an access via GOT for PIC case.
1763 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
1765 * configure.in (intermodule): Make switch test more portable.
1766 * configure: Regenerate.
1768 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
1770 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
1771 (restrap): Likewise.
1773 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1775 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
1776 (grealloc): Size argument is a size_t.
1777 (gcalloc): New function. Use throughout in lieu of
1780 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
1782 * config/ia64/ia64.c (ia64_reorg): Likewise.
1783 * conflict.c (conflict_graph_new): Likewise.
1784 * fixinc/fixincl.c (run_compiles): Likewise.
1785 * genattrtab.c (optimize_attrs): Likewise.
1786 * genrecog.c (new_decision): Likewise.
1787 * haifa-sched.c (schedule_block): Likewise.
1788 * hashtable.c (ht_create): Likewise.
1790 2003-08-11 Bob Wilson <bob.wilson@acm.org>
1792 * config/xtensa/lib2funcs.S: Fix whitespace.
1793 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
1794 syntax where appropriate. Remove unnecessary backslash escapes.
1795 Reformat comments and fix some code formatting.
1796 (extendqisi2): Rearrange conditional.
1797 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
1798 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
1801 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
1803 * config/mips/mips.c: Various formatting fixes.
1804 (override_options): Resync -mtune handling with gas.
1805 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
1806 * config/mips/mips.h: More formatting fixes.
1807 (mips_abi): Move declaration.
1808 * config/mips/mips.md (exception_receiver): Add mode to
1811 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
1813 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
1815 (bdesc_1arg): Remove evsplati and evsplatfi.
1817 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
1819 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
1822 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1824 * builtins.c (expand_builtin_strcat): Optimize constant strings.
1826 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
1828 * pretty-print.c (pp_base_indent): Rename from pp_indent.
1829 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
1830 (struct c_pretty_print_info): Add more fields.
1831 (pp_c_left_paren): Move to c-pretty-print.c.
1832 (pp_c_right_paren): Likewise.
1833 (pp_c_left_brace): Likewise.
1834 (pp_c_right_brace): Likewise.
1835 (pp_c_left_bracket): Likewise.
1836 (pp_c_right_bracket): Likewise.
1837 (pp_c_declarator): Declare.
1838 (pp_c_direct_declarator): Likewise.
1839 (pp_c_specifier_qualifier_list): Likewise.
1840 (pp_c_type_id): Likewise.
1841 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
1842 (pp_c_type_qualifier_list): New.
1843 (pp_c_pointer): Likewise.
1844 (pp_c_parameter_type_list): Likewise.
1845 (pp_c_function_definition): Likewise.
1846 (pp_c_id_expression): Likewise.
1847 (pp_c_simple_type_specifier): Tidy.
1848 (pp_c_unary_expression): Likewise.
1849 (pp_c_expression): Likewise.
1850 (pp_c_pretty_printer_init): Likewise.
1851 (pp_c_specifier_qualifier_list): Rework..
1852 (pp_c_abstract_declarator): Likewise.
1853 (pp_c_postfix_expression): Likewise.
1854 (pp_c_primary_expression): Likewise.
1855 (pp_c_cast_expression): Likewise.
1856 (pp_c_direct_abstract_declarator): Likewise.
1857 (pp_c_storage_class_specifier): Likewise.
1858 (pp_c_function_specifier): Likewise.
1859 (pp_c_declaration_specifiers): Likewise.
1860 (pp_c_direct_declarator): Likewise.
1861 (pp_c_declarator): Likewise.
1862 (pp_c_declaration): Likewise.
1863 (pp_c_statement): Likewise.
1864 (pp_c_integer_constant): Rename from pp_c_integer_literal.
1865 (pp_c_character_constant): Rename from pp_c_character_literal.
1866 (pp_c_bool_constant): Rename from pp_c_bool_literal.
1867 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
1868 (pp_c_floating_constant): Rename from pp_c_real_literal.
1869 (pp_c_constant): Rename from pp_c_literal.
1870 * c-lang.c: Include diagnostic.h and c-pretty-print.h
1871 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
1872 (c_initialize_diagnostics): New.
1873 * Makefile.in (c-lang.o): Update dependency.
1875 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
1877 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
1879 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
1881 * config/mips/mips.c (mips_no_mips16_string): Remove.
1882 (override_options): Don't handle -mips16 as part of -mipsN.
1883 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
1884 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
1885 (TARGET_OPTIONS): Remove -mno-mips16.
1887 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
1889 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
1890 (coprocessor2_operand): Likewise.
1891 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
1892 (lookup_name): Remove declaration.
1893 (abort_with_insn): Remove. Replace all uses with fatal_insn.
1894 (mips16, mips_abicalls): Remove.
1895 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
1896 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
1897 (coprocessor_operand, coprocessor2_operand): Remove.
1898 (override_options): Don't set mips16 or mips_abicalls.
1899 (print_operand): Don't expect SIGN_EXTEND operands.
1900 (mips_secondary_reload_class): Likewise.
1901 (mips_output_conditional_branch): Remove disabled long-branch code.
1902 * config/mips/mips.h (call_used_regs): Remove declaration.
1903 (may_call_alloca): Likewise.
1904 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
1905 (mips_abicalls, mips16): Remove declarations.
1906 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
1907 (CC1_SPEC): Remove outdated comment.
1908 (MIPS_VERSION, MACHINE_TYPE): Remove.
1909 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
1910 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
1911 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
1912 (PUSH_ROUNDING): Likewise.
1913 (ASSEMBLER_SCRATCH_REGNUM): Remove.
1914 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
1915 and mips16 with TARGET_MIPS16.
1917 2003-08-09 Per Bothner <pbothner@apple.com>
1919 * cppinit.c (cpp_read_main_file): Split out source-independent
1920 initialization to separate function ...
1921 (cpp_post_options): New function.
1922 * cppfiles.c (cpp_stack_file): Rename public name to ...
1923 (_cpp_stack_file): New internal function name.
1924 * cpplib.h: Update accordingly.
1925 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
1926 (cpp_read_main_file): Don't initialize line here.
1927 * c-opts.c (c_common_post_options): Call cpp_post_options.
1928 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
1929 * fix-header.c (read_scan_file): Call cpp_post_options.
1931 2003-08-09 Per Bothner <per@bothner.com>
1933 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
1935 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1937 * pa.c (pa_asm_output_mi_thunk): Fix typo.
1939 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
1941 PR preprocessor/11839
1942 * cppfiles.c (open_file): Handle ENOTDIR.
1944 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
1947 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
1949 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1951 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
1952 source/destination is not a register operand.
1954 2003-08-08 Richard Henderson <rth@redhat.com>
1957 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
1958 RETURN_ADDRESS_POINTER_REGNUM.
1959 (ia64_expand_prologue): Don't frob it.
1960 (ia64_output_function_epilogue): Likewise.
1961 (ia64_return_addr_rtx): New.
1962 (ia64_split_return_addr_rtx): New.
1963 * config/ia64/ia64-protos.h: Update.
1964 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
1965 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
1966 (GENERAL_REGNO_P): Don't check it.
1967 (AR_*_REGNUM): Renumber.
1968 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
1969 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
1970 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
1971 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
1972 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
1973 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
1974 (movdi_ret_addr): New.
1976 2003-08-08 Geoffrey Keating <geoffk@apple.com>
1978 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
1980 2003-08-08 Roger Sayle <roger@eyesopen.com>
1982 * tree.h (get_identifier) Define a macro form of get_identifier
1983 that calls get_identifier_with_length when the string is constant.
1984 (get_identifier_with_length): Change type of second argument to
1985 size_t in prototype.
1986 * stringpool.c (get_identifier): Undefine the macro before giving
1987 the function definition.
1988 (get_identifier_with_length): Change type of second argument to
1989 size_t in function definition.
1990 * hashtable.c (calc_hash): Change type of second argument to size_t.
1991 (ht_lookup): Change type of third argument to size_t. Reorganize
1992 to speed-up the cases where the hash table slot is empty, or the
1993 first probe matches (i.e. there isn't a collision).
1994 * hashtable.h (ht_lookup): Adjust function prototype.
1996 2003-08-08 Bernardo Innocenti <bernie@develer.com>
2000 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
2002 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
2004 * common.opt: Add debug switches.
2005 * flags.h (use_gnu_debug_info_extensions): Boolify.
2006 * opts.c (write_symbols, debug_info_level,
2007 use_gnu_debug_info_extensions): Move from toplev.c.
2008 (set_debug_level): New.
2009 (common_handle_options): Handle debug switches.
2010 (print_help): Display target options directly.
2011 * toplev.c (debug_hooks): Don't initialize.
2012 (write_symbols, debug_info_level,
2013 use_gnu_debug_info_extensions): Move to opts.c.
2014 (debug_args, display_help, decode_g_option): Remove.
2015 (process_options): Set no debug if level zero here,
2016 and no-debug-hooks. Error here if impossible debug format selected.
2017 * toplev.h (display_help, decode_g_option): Remove.
2019 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
2021 * tree.c (get_file_function_name_long): Fix size of alloca() area.
2023 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
2025 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
2026 and gcc_cv_prog_cmp_skip.
2027 * configure: Regenerate.
2029 2003-08-08 Stan Cox <scox@redhat.com>
2031 * config/iq2000: New port.
2032 * config.gcc (iq2000-*-elf): Added.
2033 * doc/install.texi (Specific): Add iq2000 description.
2035 2003-08-08 Andreas Schwab <schwab@suse.de>
2037 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
2038 and insert missing empty argument.
2039 * configure: Regenerate.
2041 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2043 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
2044 (attr_length_millicode_call): Likewise.
2045 (attr_length_call): Likewise. Revise some maximum insn lengths.
2046 (attr_length_indirect_call): Likewise.
2047 (output_call): Fix thinko that added extra nop.
2048 * pa.h (IN_NAMED_SECTION_P): Define.
2051 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
2052 __STDC_EXT__ when using C++ dialect.
2054 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
2056 * sh.c (calc_live_regs): If the return address pointer is live,
2058 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
2059 for saves / restores.
2060 (sh_expand_epilogue): If sh_media_register_for_return returns a
2061 register number, flag the instructions that restores PR_MEDIA_REG
2063 Remove dead update of offset.
2064 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
2065 we can use the result of get_hard_reg_initial_val.
2066 * sh.md (UNSPEC_RA): New constant.
2067 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
2068 (load_ra). Handle UNSPEC_RA.
2069 (sibcall_media): Use PR_MEDIA_REG.
2071 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
2072 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
2073 needs saving on SHmedia.
2075 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
2077 * config/s390/s390.md: Replace all occurrences of \\t with \t.
2079 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
2081 * local-alloc.c (combine_regs): Fix comment typo.
2083 2003-08-06 Zack Weinberg <zack@codesourcery.com>
2085 * c-decl.c (builtin_decls): Replace with first_builtin_decl
2086 and last_builtin_decl.
2087 (c_init_decl_processing): Initialize both.
2088 (c_reset_state): Iterate from first_builtin_decl to
2089 last_builtin_decl inclusive to reintroduce builtins.
2091 2003-08-06 David Mosberger <davidm@hpl.hp.com>
2093 * doc/extend.texi (Function Attributes): Document the IA-64 version
2094 of the "model" attribute.
2096 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
2097 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
2098 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
2100 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
2101 (ia64_encode_section_info): Likewise.
2102 (ia64_attribute_table): Add "model" attribute.
2103 (TARGET_ENCODE_SECTION_INFO): Define.
2104 (small_addr_symbolic_operand): New function.
2105 (got_symbolic_operand): Return 0 for a symbolref to an object
2106 in the small address area.
2107 (enum ia64_addr_area): New type.
2108 (small_ident1): New variable.
2109 (small_ident2): Likewise.
2110 (init_idents): New function.
2111 (ia64_get_addr_area): Likewise.
2112 (ia64_encode_addr_area): Likewise.
2113 (ia64_encode_section_info): Likewise.
2114 (ia64_expand_load_address): For symbolic references to objects in
2115 the small-address-area, load the address via gen_rtx_SET() (which,
2116 eventually, will expand into "addl").
2118 2003-08-06 Per Bothner <pbothner@apple.com>
2120 * line-map.h (fileline): New typedef.
2121 (struct line_map, linemap_add, linemap_lookup): Use it.
2122 * input.h (struct location_s): Comment notes that long-term we want
2123 to replace it by fileline.
2125 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
2127 Fix SHcompact exception handling:
2128 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
2129 by the prologue, return a MEM with return_address_pointer_rtx
2131 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
2132 (RETURN_ADDR_OFFSET): Don't define.
2133 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
2134 registers that are visible in compact mode. Show that SHmedia
2135 registers still exist in compact mode, even if there are not
2137 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
2138 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
2139 and DW_EH_PE_pcrel for pic data.
2140 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
2141 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
2142 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
2143 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
2144 * sh.md (movsi_media-1): New splitter.
2146 2003-08-06 Graeme Peterson <gp@qnx.com>
2148 * config/i386/nto.h: New.
2149 * config/i386/t-nto: New.
2150 * config.gcc (i[34567]86-*-nto-qnx*): New.
2152 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
2154 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
2156 2003-08-06 Alan Modra <amodra@bigpond.net.au>
2158 * calls.c (load_register_parameters): Arrange for call_fusage to
2159 report the whole register as used when shifting to the msb.
2161 2003-08-05 Roger Sayle <roger@eyesopen.com>
2163 * builtins.c (expand_builtin): When not optimizing, call the library
2164 function for all builtins that have library functions (except alloca).
2166 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
2168 * c.opt: Introduce -fworking-directory.
2169 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
2170 * c-common.h (flag_working_directory): Declare.
2171 * c-common.c (flag_working_directory): Define.
2172 * c-opts.c (c_common_handle_options): Set it.
2173 (sanitize_cpp_opts): Set...
2174 * cpplib.h (struct cpp_options): ... working_directory option.
2175 (struct cpp_callbacks): Add dir_change.
2176 * cppinit.c (read_original_filename): Call...
2177 (read_original_directory): New. Look for # 1 "directory//"
2179 (cpp_read_main_file): Call dir_change callback if working_directory
2181 * gcc.c (cpp_unique_options): Pass -g*.
2182 * c-lex.c (cb_dir_change): New.
2183 (init_c_lex): Set dir_change callback.
2184 * toplev.c (src_pwd): New static variable.
2185 (set_src_pwd, get_src_pwd): New functions.
2186 * toplev.h (get_src_pwd, set_src_pwd): Declare.
2187 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
2188 * dwarf2out.c (gen_compile_unit_die): Likewise.
2189 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
2191 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2193 * pretty-print.h (pp_set_line_maximum_length): Make macro.
2194 (pp_set_prefix): Likewise.
2195 (pp_destroy_prefix): Likewise.
2196 (pp_remaining_character_count_for_line): Likewise.
2197 (pp_clear_output_area): Likewise.
2198 (pp_formatted_text): Likewise.
2199 (pp_last_position_in_text): Likewise.
2200 (pp_emit_prefix): Likewise.
2201 (pp_append_text): Likewise.
2202 (pp_flush): Likewise.
2203 (pp_format_text): Likewise.
2204 (pp_format_verbatim): Likewise.
2205 (pp_tree_identifier): Tidy.
2206 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
2207 (pp_base_format_verbatim): Rename from pp_format_verbatim.
2208 (pp_base_flush): Rename from pp_flush.
2209 (pp_base_set_line_maximum_length): Rename from
2210 pp_set_line_maximum_length.
2211 (pp_base_clear_output_area): Rename from pp_clear_output_area.
2212 (pp_base_set_prefix): Rename from pp_set_prefix.
2213 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
2214 (pp_base_emit_prefix): Rename from pp_emit_prefix.
2215 (pp_base_append_text): Rename from pp_append_text.
2216 (pp_base_formatted_text): Rename from pp_formatted_text.
2217 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
2218 (pp_base_remaining_character_count_for_line): Rename from
2219 pp_remaining_character_count_for_line.
2220 * diagnostic.h (diagnostic_format_decoder): Tidy.
2221 (diagnostic_flush_buffer): Likewise.
2222 * c-pretty-print.h: (pp_c_string_literal): Declare.
2223 (pp_c_real_literal): Likewise.
2224 (pp_c_integer_literal): Likewise.
2225 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
2227 (pp_c_character_literal): Tidy.
2228 (pp_c_string_literal): Make public.
2229 (pp_c_bool_literal): Likewise.
2230 (pp_c_integer_literal): Likewise.
2231 (pp_c_real_literal): Likewise.
2233 * Makefile.in (C_PRETTY_PRINT_H): New variable.
2234 (c-pretty-print.o): Update dependence.
2236 2003-08-05 Chris Demetriou <cgd@broadcom.com>
2238 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
2239 ".set nomacro" state.
2240 (fix_truncsfsi2_macro): Likewise.
2242 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
2244 * tree.h (DID_INLINE_FUNC): Remove macro.
2245 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
2246 add tree check for FUNCTION_DECL.
2247 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
2248 (struct tree_decl): Rename inlined_function_flag to
2249 declared_inline_flag.
2250 * c-common.h (c_lang_decl): Remove.
2251 (DECL_ESTIMATED_INSNS): Remove.
2252 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
2253 (DECL_DECLARED_INLINE_P): Remove.
2254 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
2255 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
2256 (finish_function): Make uninlinable a bool. Fixup call to
2257 tree_inlinable_function_p() and fix some code style issues.
2258 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
2259 * cgraph.c (dump_cgraph): Likewise.
2260 * cgraphunit.c (cgraph_decide_inlining): Likewise
2261 (cgraph_finalize_compilation_unit): Likewise.
2262 Also update call to tree_inlinable_function_p().
2263 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
2264 look at DECL_DECLARED_INLINE and reverse logic.
2265 * print-tree.c (print_node): Likewise.
2266 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
2267 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
2269 * tree-inline.c (inlinable_function_p): Split up in this function to
2270 check for basic inlining inhibiting conditions, and new
2271 limits_allow_inlining() function. Warn if inlining is impossible
2272 because the inline candidate calls alloca or uses sjlj exceptions.
2273 (limits_allow_inlining): this new function to check if the inlining
2274 limits are satisfied. Throttle from currfn_max_inline_insns, not from
2275 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
2276 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
2278 (tree_inlinable_function_p): Make a bool. Update call to
2279 inlinable_function_p
2280 (expand_call_inline): Use limits_allow_inlining() when not in
2281 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
2282 instead see if the function was declared `inline'.
2284 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
2286 * gcse.c (try_replace_reg): Fix updating of note.
2288 2003-08-04 Roger Sayle <roger@eyesopen.com>
2291 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
2292 logic in negate_expr, i.e. we don't invert (A-B) for floating
2293 point types unless flag_unsafe_math_optimizations.
2295 2003-08-04 Roger Sayle <roger@eyesopen.com>
2297 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
2298 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
2299 for floating point expressions with -ffast-math.
2300 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
2301 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
2303 2003-08-04 Roger Sayle <roger@eyesopen.com>
2305 * c-common.c (flag_noniso_default_format_attributes): Delete.
2306 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
2307 (c_attrs_initialized): Delete.
2308 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
2309 always call c_init_attributes.
2310 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
2311 set c_attrs_initialized when done.
2312 (c_common_insert_default_attributes): Delete.
2313 * c-common.h (flag_noniso_default_format_attributes): Delete.
2314 (c_coomon_insert_default_attributes): Delete prototype.
2315 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
2316 flag_noniso_default_format_attributes.
2318 * c-decl.c (c_insert_default_attributes): Delete.
2319 * c-tree.h (c_insert_default_attributes): Delete prototype.
2321 * attribs.c (decl_attributes): Don't call insert_default_attributes
2322 langhook. Update function description comment.
2323 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
2324 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
2325 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
2326 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
2328 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
2331 2003-08-04 Richard Sandiford <rsandif@redhat.com>
2333 * config/mips/mips.c (override_options): Disable -G on targets that
2334 have no .section support.
2335 (mips_select_section): Use default_select_section for such targets.
2337 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
2339 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
2340 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
2341 * fixinc/fixincl.x: Rebuild.
2342 * fixinc/tests/base/regexp.h: New test.
2344 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
2346 * c-ppoutput.c (cb_line_change): Don't skip line changing while
2347 parsing macro arguments in the top-level context.
2349 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
2351 * config.in: Remove HAVE_LSTAT.
2352 * configure, configure.in: Don't test for lstat.
2354 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2356 * opts.c (decode_options): Do language-specific initialization for
2357 the global diagnostic context.
2358 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
2359 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
2360 (LANG_HOOKS_INITIALIZER): Adjust.
2361 * langhooks.h (struct lang_hooks): Add new field
2362 initialize_diagnostics.
2363 * langhooks.c (lhd_initialize_diagnostics): Define.
2365 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2367 * pretty-print.h: Adjust macro definitions.
2368 * pretty-print.c (pp_newline): Rename to pp_base_newline.
2369 (pp_character): Rename to pp_base_character.
2370 (pp_string): Rename to pp_base_string.
2371 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
2372 (pp_newline): Likewise. Adjust.
2373 (pp_c_char): Adjust.
2375 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2377 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
2378 BUILT_IN_LLABS): Move to miscellaneous section.
2380 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
2382 PR preprocessor/11534
2383 * cppexp.c (parse_defined): Warn only if -pedantic.
2385 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
2387 * cppfiles.c (stack_file): Use file path.
2389 2003-08-02 Roger Sayle <roger@eyesopen.com>
2391 * builtin-types.def (BT_SSIZE): New primitive type.
2392 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
2393 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
2394 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
2395 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
2396 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
2397 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
2398 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
2399 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
2400 few functions that define default attributes using it.
2401 * c-common.c (c_common_insert_default_attributes): Do nothing.
2403 * doc/extend.texi: Document these "new" builtins.
2405 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
2407 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
2408 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
2409 when -mieee-fp set and -shared not set.
2410 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
2412 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
2414 * cppfiles.c (struct _cpp_file): Rename once_only_next to
2415 next_file. Remove import and pragma_once, add once_only.
2416 (find_file): Add new file structures to the all_files list.
2417 (should_stack_file): Mark #import-ed files once-only, and
2418 don't stack them if the file has already been stacked.
2419 (_cp_mark_file_once_only): Simplify.
2420 * cpphash.h (struct cpp_reader): Rename once_only_files
2421 to all_files. Rename saw_pragma_once to seen_once_only.
2422 (_cpp_mark_file_once_only): Update prototype.
2423 * cpplib.c (do_pragma_once): Update.
2425 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
2427 * cppfiles.c (ENOTDIR): Remove.
2428 (open_file_in_dir): Rename find_file_in_dir. Handle errors
2429 other than ENOENT here.
2430 (once_only_file_p): Rename should_stack_file.
2431 (find_file, open_file_failed, read_file_guts): Report errors
2432 with full path name.
2433 (read_file): Move pch handling to should_stack_file.
2434 (should_stack_file): Handle PCH and once-only issues, and
2436 (stack_file): Don't do file reads.
2438 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2440 * libgcov.c (gcov_exit): Cleanup and fix.
2441 * profile.c (compute_value_histograms): Don't try to read profiles
2442 that are not present.
2444 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2446 * builtins.def: Categorize.
2448 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
2450 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
2452 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
2454 * config.gcc: Enable posix threads by default on darwin.
2456 2003-08-01 Jakub Jelinek <jakub@redhat.com>
2458 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
2459 even if nehedges1 is 0.
2461 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
2463 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
2464 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
2465 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
2468 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
2469 * fixinc/fixincl.x: Regenerate.
2470 * fixinc/tests/base/math.h: Regenerate to match test_text change.
2472 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2474 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
2476 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2478 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
2479 for accesses to exc_ptr.
2481 2003-08-01 Geoffrey Keating <geoffk@apple.com>
2483 * doc/sourcebuild.texi (Front End Directory): Don't make references
2484 to libsubdir, it's not part of the interface to frontends.
2485 * doc/install.texi (Configuration): Help users read faster by saying
2486 that GCC's configure options are the standard autoconf ones.
2487 Mention --libdir. Update the default rules for finding the
2488 assembler. Don't use libsubdir since we haven't said what it means.
2489 (Specific): In the Solaris 7 notes, update the place to put the
2491 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
2492 * doc/cpp.texi (Search Path): Actually, the search path
2493 depends on libdir, which can relocate with cpp.
2494 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
2495 now a private interface between the Makefile and the driver.
2497 2003-08-01 Richard Henderson <rth@redhat.com>
2499 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
2501 * varasm.c (lookup_constant_def): New function.
2502 * rtl.h (lookup_constant_def): Declare it.
2503 * dwarf2out.c (loc_descriptor_from_tree): Use it.
2504 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
2506 2003-08-01 Zack Weinberg <zack@codesourcery.com>
2508 * c-decl.c (gettags, pushdecl_function_level): Delete.
2509 (last_function_parm_vars): Rename last_function_parm_others.
2510 (current_function_parm_vars): Rename current_function_parm_others.
2511 (struct c_scope): Rewrite comment explaining this data structure.
2512 Add names_last, blocks_last, parms_last fields. Rename
2513 incomplete_list to incomplete.
2514 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
2515 (poplevel): Ignore second argument. No need to nreverse
2516 anything. Restructure such that each list is processed
2517 exactly once. Use 'const location_t *locus' syntactic sugar
2518 variable where useful. Issue unused variable warnings
2519 ourselves, do not rely on function.c.
2520 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
2521 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
2522 (implicitly_declare): decl cannot be error_mark_node.
2523 (undeclared_variable): Manipulate scope structure directly.
2524 (c_make_fname_decl): Likewise.
2525 (getdecls, c_init_decl_processing): Fix comment.
2526 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
2527 for 'last' variable.
2528 (grokparms): No need to nreverse parms list.
2529 (store_parm_decls_newstyle): Set up the parms_last and
2530 names_last fields of the new scope too.
2531 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
2532 on parms to begin with; check this under ENABLE_CHECKING. Set
2534 (check_for_loop_decls): Refer directly to current_scope->tags.
2535 Use consistent quote style in diagnostics.
2536 (c_write_global_declarations): The names list is not backward.
2538 * c-common.h: Don't prototype gettags.
2539 * c-parse.in: Call poplevel with second argument 0 always.
2541 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2543 * builtins.def: Resort builtins.
2545 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2547 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
2548 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
2549 Prepend "__builtin_" onto NAME with string concatenation. Remove
2550 explicit "__builtin_" from each macro call.
2552 Reformat entire file.
2554 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2556 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
2557 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
2559 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
2561 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
2562 CCL1, or CCL2 modes with floating point operations.
2564 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
2565 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
2566 "*subdf3_cconly"): New insns.
2567 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
2569 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
2571 * Makefile.in: Refine dependencies.
2572 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
2573 * c.opt: Update help for -Wimport.
2574 * cppfiles.c: Include hashtab.h. Update comments.
2575 (stack_file): Read the file before updating dependencies.
2576 (once_only_file_p): Be smarter about marking once-only files.
2577 (_cpp_mark_file_once_only): Correct the check for existence on
2579 (open_file_failed): Use name not path, which is NULL.
2580 * cpphash.h: Don't include hashtab.h.
2581 (struct _cpp_file): Remove.
2582 (struct cpp_reader): Update.
2583 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
2584 * cpplib.h (struct cpp_options): Remove warn_import.
2585 (cpp_simplify_path): Remove.
2587 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
2590 * doc/extend.texi (Statement Expressions): Document C++ semantics.
2592 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
2594 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
2596 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2598 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
2600 * builtins.def: Likewise.
2602 2003-07-31 Jason Merrill <jason@redhat.com>
2604 * Makefile.in (bubblestrap): Don't require a previous full
2607 * expr.c (mostly_zeros_p): No longer static.
2608 * tree.h: Declare it.
2609 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
2610 unless we need to do substitutions.
2612 2003-07-31 Roger Sayle <roger@eyesopen.com>
2614 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
2615 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
2616 as pow(x,2.0) when the latter will be expanded back into x*x.
2617 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
2618 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
2619 pow can never set errno when used with an integer exponent.
2620 Always use expand_powi when exponent is -1, 0, 1 or 2.
2621 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
2622 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
2623 the pow forms of these expressions.
2625 2003-07-31 Geoffrey Keating <geoffk@apple.com>
2627 * Makefile.in (libexecdir): New.
2628 (libsubdir): Use gcc instead of gcc-lib.
2629 (libexecsubdir): New.
2630 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
2631 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
2633 (installdirs): Make libexecsubdir.
2634 (install-common): Put executables in libexecsubdir.
2635 (itoolsdir): Use libexecsubdir.
2636 (itoolsdatadir): New.
2637 (install-mkheaders): Separate data files and executables.
2638 (install-collect2): Put executables in libexecsubdir.
2639 (uninstall): Remove libexecsubdir.
2640 * mkheaders.in: Update for new arrangement of files.
2642 (libexecsubdir): New.
2643 (itoolsdir): Use libexecsubdir.
2644 (itoolsdatadir): New.
2645 * gcc.c (gcc_libexec_prefix): New.
2646 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
2647 (standard_exec_prefix_1): Use libexec.
2648 (standard_exec_prefix_2): New.
2649 (standard_libexec_prefix): New.
2650 (process_command): Update for new arrangement of files. Compute
2651 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
2653 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
2655 * inclhack.def (stdio_va_list): Avoid bogus replacement which
2656 triggers on Interix.
2657 * fixincl.x: Regenerate.
2659 2003-07-31 Jakub Jelinek <jakub@redhat.com>
2661 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
2662 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
2664 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2666 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
2668 2003-07-31 Per Bothner <pbothner@apple.com>
2670 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
2671 (add_input_filename): New function.
2672 (handle_options): Call add_input_filename directly instead of
2674 * opts.h (in_fnames, num_in_fnames): Moved here.
2675 (add_input_filename): Declare.
2676 * c-decl.c: Need to #include opts.h.
2677 * Makefile.in (c-decl.o): Also depends on opts.h.
2678 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
2679 (c_common_handle_filename): Replaced by add_input_filename.
2680 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
2682 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
2683 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
2684 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
2685 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
2687 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2689 * combine.c (try_combine): Set JUMP_LABEL for newly created
2692 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2694 * fold-const.c (fold): Fold some comparisons of bit operations.
2696 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
2698 * cgraph.c (create_edge): Fix typo.
2699 * i386.c (pic_symbolic_operand): Reorder tests.
2701 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
2703 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
2705 (Gcov Data Files): Update.
2707 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2709 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
2712 * gthr-posix.c: New file.
2713 * gthr-posix.h: Define _REENTRANT if missing.
2714 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
2716 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
2718 * config/alpha/t-osf-pthread: New file.
2720 * fixinc/inclhack.def (alpha_pthread): New fix.
2721 * fixinc/fixincl.x: Regenerate.
2722 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
2724 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
2726 Fixes PR bootstrap/9330.
2728 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2730 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
2733 * configure: Regenerate.
2735 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
2737 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
2740 2003-07-30 Roger Sayle <roger@eyesopen.com>
2742 * builtins.def: Alphabetize.
2744 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
2746 * doc/c-tree.texi: Normalize spellings of "lowercase" and
2748 * doc/cpp.texi: Likewise.
2749 * doc/md.texi: Likewise.
2750 * doc/rtl.texi: Likewise.
2751 * doc/tm.texi: Likewise.
2753 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
2755 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
2756 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
2759 2003-07-30 Chris Demetriou <cgd@broadcom.com>
2761 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
2762 macros before defining them.
2764 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
2766 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
2767 UNSPECV_BLOCKAGE): New constants.
2768 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
2769 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
2770 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
2771 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
2773 (all insns and expanders): Write output control string as brace block
2774 where appropriate. Remove \-escapes for doublequote characters.
2776 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
2778 * gcse.c (insert_store): Fix typo in previous patch.
2780 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
2782 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
2784 2003-07-30 Andi Kleen <ak@muc.de>
2786 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
2788 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2790 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
2791 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
2792 GCOV_N_VALUE_COUNTERS): New.
2793 * profile.c (compute_value_histograms): New static function.
2794 (branch_prob): Read back the value histograms.
2795 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
2796 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
2797 * value-prof.c: Add comment on reading the profile.
2798 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
2799 * doc/invoke.texi (-fprofile-values): Document behavior with
2800 -fbranch-probabilities.
2802 2003-07-30 David Edelsohn <edelsohn@gnu.org>
2804 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
2806 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
2808 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
2811 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
2813 * gcse.c (insert_store): Ignore fake edges.
2815 * c-common.c (flag_vtable_gc): Kill.
2816 * c-common.g (flag_vtable_gc): Kill.
2817 * c-opts (c_common_handle_option): Kill.
2818 * c.opt (fvtable-gc): Kill.
2819 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
2820 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
2821 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
2823 * invoke.texi (-ftable-gc): Kill documentation.
2825 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
2826 just because function body is missing.
2828 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
2830 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
2832 * unwind-sjlj.c: Fix typo in file description.
2834 2003-07-30 Alan Modra <amodra@bigpond.net.au>
2836 * calls.c (load_register_parameters): When shifting reg sized values
2837 to the msb, move the value to a reg first.
2839 2003-07-29 Geoffrey Keating <geoffk@apple.com>
2841 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
2842 * line-map.h (linemap_add): Update comments.
2843 * line-map.c (linemap_add): Update comments, interpret zero-length
2844 filename as "<stdin>".
2846 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
2848 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
2850 2003-07-29 Zack Weinberg <zack@codesourcery.com>
2852 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
2853 New static variables.
2854 (struct c_scope): Add parms and warned_forward_parm_decls
2855 fields; remove parm_order.
2856 (storedecls, storetags): Delete.
2857 (poplevel): Also clear bindings on the parms chain.
2858 (pushdecl): Handle forward declarations of parameters, and
2859 chain PARM_DECLs on the parms list, not the names list.
2860 (lookup_name_current_level): Check for PARM_DECLs on the parms
2862 (push_parm_decl): Don't update parm_order.
2863 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
2864 warning, only once per parameter list, and set TREE_ASM_WRITTEN
2865 on the decls here. Then move the forward decls to the names list.
2866 (grokparms): Set last_function_parm_vars.
2867 (get_parm_info): Don't use gettags or getdecls. No need to
2868 extract non-parms from the parms list, or reorganize the parms
2869 list. Feed nonparms back in the TREE_TYPE of the list node
2870 returned. Issue only one error per parameter list for "void"
2871 appearing more than once in said parameter list. Collapse
2872 parmlist_tags_warning into this function to avoid double scan
2874 (start_function): Set current_function_parm_vars.
2875 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
2876 directly. Get non-parms from current_function_parm_vars; no
2877 need to extract them from the parms chain. Properly bind tags
2879 (store_parm_decls_oldstyle): No need to extract non-parameters
2880 from the parms chain, nor to store them back afterward. Move
2881 declaration to top of function, restructure code reordering
2883 (store_parm_decls): No need to save and restore warn_shadow.
2884 * c-parse.in: Don't call parmlist_tags_warning nor
2885 clear_parm_order. Call mark_forward_parm_decls when forward
2886 parm decls are encountered.
2887 * c-tree.h: Prototype mark_forward_parm_decls; not
2888 clear_parm_order or parmlist_tags_warning.
2890 2003-07-29 Geoffrey Keating <geoffk@apple.com>
2892 * c-common.c (allow_pch): Remove.
2893 * c-common.h (allow_pch): Remove.
2894 (c_common_no_more_pch): Declare.
2895 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
2896 * c-pch.c: Include hosthooks.h.
2897 (c_common_valid_pch): Don't check allow_pch.
2898 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
2899 (c_common_no_more_pch): New.
2900 * ggc-common.c: Include hosthooks.h.
2901 (gt_pch_save): Call gt_pch_get_address.
2902 (gt_pch_restore): Call gt_pch_use_address.
2903 * hooks.c (hook_voidp_size_t_null): New.
2904 (hook_bool_voidp_size_t_false): New.
2905 * hooks.h (hook_voidp_size_t_null): New.
2906 (hook_bool_voidp_size_t_false): New.
2907 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
2908 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
2909 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
2910 HOST_HOOKS_GT_PCH_USE_ADDRESS.
2911 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
2913 * doc/hostconfig.texi (Host Common): Document
2914 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
2915 * Makefile.in (c-pch.o): Depend on hosthooks.h.
2916 (ggc-common.o): Likewise.
2918 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
2919 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
2920 (pch_address_space): New.
2921 (darwin_rs6000_gt_pch_get_address): New.
2922 (darwin_rs6000_gt_pch_use_address): New.
2924 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
2926 PR preprocessor/11569
2927 PR preprocessor/11649
2928 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
2929 * cppfiles.c: Completely rewritten.
2930 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
2931 struct cpp_path is now struct cpp_dir.
2932 (remove_duplicates): Don't simplify path names.
2933 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
2935 * cpphash.h: Include hashtab.h.
2936 (_cpp_file): Declare.
2937 (struct cpp_buffer): struct include_file is now struct _cpp_file,
2938 and struct cpp_path is now struct cpp_dir. Rename members.
2939 (struct cpp_reader): Similarly. New members once_only_files,
2940 file_hash, file_hash_entries, quote_ignores_source_dir,
2941 no_search_path, saw_pragma_once. Remove all_include_files and
2942 max_include_len. Make some members bool.
2943 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
2944 (_cpp_stack_file): Renamed from _cpp_read_file.
2945 (_cpp_stack_include): Renamed from _cpp_execute_include.
2946 (_cpp_init_files): Renamed from _cpp_init_includes.
2947 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
2948 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
2949 (cpp_read_next_file): Rename and move to cppfiles.c.
2950 (cpp_read_main_file): Update.
2951 * cpplib.c (run_directive): Update for renamed members.
2952 (do_include_common, _cpp_pop_buffer): Update.
2953 (do_import): Undeprecate #import.
2954 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
2955 * cpplib.h: Remove file_name_map_list.
2956 (cpp_options): Remove map_list.
2957 (cpp_dir): Rename from cpp_path. New datatype for name_map.
2958 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
2960 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
2962 * Makefile.in: Make stamp-objdir safe for parallel builds.
2964 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
2966 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
2967 (info): Depend on stmp-docobjdir.
2969 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2971 * configure: Regenerate.
2973 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
2976 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
2977 in !unit-at-a-time mode.
2979 2003-07-28 Geoffrey Keating <geoffk@apple.com>
2981 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
2984 2003-07-28 Mark Mitchell <mark@codesourcery.com>
2987 * c-common.c (shorten_compare): Take into account differences
2988 between C and C++ representation for enumeration types.
2989 * tree.h (set_min_and_max_values_for_integral_type): Declare.
2990 * stor-layout.c (set_min_and_max_values_for_integral_type): New
2991 function, broken out from ...
2992 (fixup_signed_type): ... here and ...
2993 (fixup_unsigned_type): ... here.
2995 2003-07-28 Zack Weinberg <zack@codesourcery.com>
2997 * c-decl.c: Update commentary, adjust blank lines throughout.
2998 (struct c_scope): Fix indentation. Reorder members so
2999 outer-context pointers come first, booleans last.
3000 (duplicate_decls, define_label): Use a 'locus' variable for
3001 diagnostic locations in a few more places.
3002 (warn_if_shadowing): Un-split a conditional that fits on one line.
3003 (c_init_decl_processing): No need to clear current_scope and
3004 current_function_scope.
3005 (start_decl): Merge if/else if statements with same action.
3006 (push_parm_decl): Rename old_immediate_size_expand to use
3007 save_foo convention; save/restore around entire function.
3008 (grokdeclarator): Remove unnecessary braces.
3010 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
3011 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
3013 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
3014 when warn_declaration_after_statement. Call pedwarn_c90, not
3015 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
3016 * c-common.c (warn_declaration_after_statement): Define.
3017 * c-common.h (warn_declaration_after_statement): Declare.
3018 * c.opt (Wdeclaration-after-statement): New.
3019 * c-errors.c (pedwarn_c90): New function.
3020 * c-opts.c (c_common_handle_option) <case
3021 OPT_Wdeclaration_after_statement>: New.
3022 * c-tree.h (pedwarn_c90): Declare.
3023 * doc/invoke.texi (Option Summary): Document
3024 -Wdeclaration-after-statement.
3025 (Warning Options): Ditto.
3027 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
3029 * i386.md (memory attribute) Avoid accessing uninitialized memory
3030 for ishift1 type instructions.
3032 2003-07-28 Jakub Jelinek <jakub@redhat.com>
3034 * configure.in (--enable-checking): Add fold category.
3035 (ENABLE_FOLD_CHECKING): Define if requested.
3036 * configure: Rebuilt.
3037 * config.in: Rebuilt.
3038 * doc/install.texi: Document it.
3039 * fold-const.c: Include md5.h.
3040 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
3041 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
3042 print_fold_checksum): New functions.
3044 * fold-const.c (fold): Never modify argument passed to fold, instead
3045 change a copy and return it.
3046 * convert.c (convert_to_integer): Likewise.
3048 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
3050 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
3051 cleanup of junk after #else and #endif directives. Collapse repeated
3052 clauses into for statment.
3054 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
3056 2003-07-27 Zack Weinberg <zack@codesourcery.com>
3058 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
3059 (keep_next_if_subblocks): Rename next_is_function_body.
3060 (pushlevel): Adjust commentary. Always set ->keep on the
3061 outermost level of a function. Don't set ->keep_if_subblocks.
3062 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
3063 (store_parm_decls): Adjust to match.
3064 (finish_function): Adjust to match.
3065 Call poplevel with all three arguments zero.
3067 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
3068 New functions split out of store_parm_decls.
3069 Avoid unnecessary work. Use local variables consistently.
3070 (store_parm_decls): Likewise.
3072 (finish_function): No need to set functionbody flag on call to
3074 (struct language_function): Remove scope field.
3075 (c_push_function_context, c_pop_function_context): No need to
3076 save and restore current_scope.
3078 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
3080 * doc/extend.texi (Deprecated Features): Implicit typename is
3081 gone. Default args on types is going.
3083 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
3085 * Makefile.in (ifcvt.o): Depend on target.h
3086 * ifcvt.c (target.h): Include.
3087 (if_convert): Don't call mark_loop_exit_edges if we can't
3090 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3092 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
3094 2003-07-26 Richard Henderson <rth@redhat.com>
3097 * cse.c (count_reg_usage): Handle asm_operands properly.
3099 2003-07-26 Roger Sayle <roger@eyesopen.com>
3101 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
3102 (DEF_EXT_FALLBACK_BUILTIN): Delete.
3103 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
3104 the regular DEF_EXT_LIB_BUILTIN macro.
3105 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
3106 the regular DEF_LIB_BUILTIN macro.
3107 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
3108 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
3109 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
3110 DEF_EXT_LIB_BUILTIN macro.
3112 * c-decl.c (duplicate_decls): Remove code to handle builtin
3113 functions prototyped without an argument list.
3115 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3117 * config/i386/winnt.c: Revert 2003-07-08 change.
3118 (i386_pe_section_type_flags): Remove error_with_decl here too.
3120 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
3122 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
3123 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
3124 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
3125 (v850_handle_data_area_attribute): Likewise.
3127 2003-07-26 Geoffrey Keating <geoffk@apple.com>
3129 * varasm.c (output_constant_def_contents): Use
3130 ASM_DECLARE_CONSTANT_NAME if defined.
3131 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
3132 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
3133 objects get at least one byte to prevent assembler problems.
3134 (ASM_DECLARE_CONSTANT_NAME): New.
3136 * Makefile.in (libbackend.o): Remove options_.h.
3137 (mostlyclean): Likewise.
3139 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
3140 insert a label at the end of an function under Mach-O.
3142 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
3144 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
3146 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
3148 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
3150 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
3152 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3154 * doc/passes.texi (Passes): Mention pretty-printing and
3157 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
3159 * doc/extend.texi (Function Attributes): GNU C++ does now allow
3160 unused parameter decls.
3161 (Attribute Syntax): GNU C++ does not allow label attributes to be
3164 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3166 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
3167 (objc_declare_class): Likewise.
3168 (error_with_ivar): Likewise.
3169 (start_class): Likewise.
3170 (warn_with_method): Likewise.
3172 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3174 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
3176 * calls.c (try_to_integrate): Don't use xxx_with_decl.
3177 (expand_call): Likewise.
3178 * dwarfout.c (output_reg_number): Likewise.
3179 * expr.c (expand_expr): Likewise.
3180 * function.c (assign_temp): Likewise.
3181 (uninitialized_vars_warning): Likewise.
3182 (setjmp_args_warning): Likewise.
3183 (expand_function_end): Likewise.
3184 * stmt.c (fixup_gotos): Likewise.
3185 (warn_about_unused_variables): Likewise.
3186 (expand_end_bindings): Likewise.
3187 * stor-layout.c (layout_decl): Likewise.
3188 (place_field): Likewise.
3189 * toplev.c (check_global_declarations): Likewise.
3190 (rest_of_handle_inlining): Likewise.
3191 (default_tree_printer): New function.
3192 (general_init): Initialize diagnostic machinery before routing
3193 signals to the ICE machinery. Set default tree printer.
3194 * toplev.h (pedwarn_with_decl): Remove declaration.
3195 (warning_with_decl): Likewise.
3196 (error_with_decl): Likewise.
3197 (pedwarn): Remove attribute for the time being.
3198 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
3199 * varasm.c (named_section): Likewise.
3200 (make_decl_rtl): Likewise.
3201 (assemble_variable): Likewise.
3202 (merge_weak): Likewise.
3203 (declare_weak): Likewise.
3205 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
3206 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
3207 (format_with_decl): Remove.
3208 (diagnostic_for_decl): Likewise.
3209 (pedwarn_with_decl): Likewise.
3210 (warning_with_decl): Likewise.
3211 (error_with_decl): Likewise.
3212 (diagnostic_initialize): Adjust.
3213 (diagnostic_count_diagnostic): Likewise.
3214 (announce_function): Likewise.
3215 (lhd_print_error_function): Likewise.
3216 (diagnostic_report_current_module): Likewise.
3217 (default_diagnostic_starter): Likewise.
3218 (diagnostic_report_diagnostic): Likewise.
3219 (default_diagnostic_finalizer): Likewise.
3220 (verbatim): Likewise.
3222 (warning): Likewise.
3223 * opts.c (common_handle_option): Likewise.
3224 * pretty-print.c: New file.
3225 * c-pretty-print.h (pp_base): Override.
3226 * c-pretty-print.c: Adjust use of macros throughout.
3227 (pp_buffer): New macro.
3228 (pp_newline): Likewise.
3229 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
3230 * Makefile.in (DIAGNOSTIC_H): New variable.
3231 (c-errors.o): Use it.
3232 (c-objc-common.o): Likewise.
3233 (c-common.o): Likewise.
3234 (c-opts.o): Likewise.
3235 (c-format.o): Likewise.
3236 (diagnostic.o): Likewise.
3238 (toplev.o): Likewise.
3239 (rtl-error.o): Likewise.
3240 (dwarf2out.o): Likewise.
3242 (pretty-print.o): New rule.
3244 2003-07-24 Roger Sayle <roger@eyesopen.com>
3246 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
3247 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
3248 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
3249 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
3250 (DEF_FRONT_END_LIB_BUILTIN): Delete.
3251 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
3252 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
3254 * builtins.c (build_string_literal): New function to construct
3255 a char* pointer to a string literal.
3256 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
3257 "rtx target" to be consistent with other expand_builtin_* functions.
3258 Change 3rd argument from "int unlocked" to "bool unlocked".
3259 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
3260 c-common.c to avoid front-end dependencies. Optimize printf("")
3261 as a no-op when the result isn't required. Handle embedded NULs
3263 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
3264 from c-common.c to avoid front-end dependencies. Likewise, optimize
3265 fprintf(fp,"") as a no-op when the result isn't required, evaluating
3266 fp for side-effects. Handle embedded NULs in format string.
3267 (expand_builtin_sprintf): Fix typo.
3268 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
3269 optimizing. Adjust calls of expand_builtin_fputs to match the API
3270 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
3271 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
3272 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
3274 * c-common.c (is_valid_printf_arglist): Delete.
3275 (c_expand_builtin): Delete.
3276 (c_expand_builtin_printf): Moved to builtins.c. Delete.
3277 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
3278 (c_expand_expr): No longer treat CALL_EXPRs specially.
3279 (CALLED_AS_BUILT_IN): Delete.
3281 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3283 PR optimization/11631
3284 * gcse.c (store_motion): Connect infinite loops to exit.
3286 2003-07-24 Jason Merrill <jason@redhat.com>
3288 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
3289 (boolean_true_node, boolean_false_node): Likewise.
3290 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
3291 * tree.c (build_common_tree_nodes): Init boolean_type_node.
3292 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
3293 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
3294 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
3295 (truthvalue_true_node): Renamed from boolean_true_node.
3296 (truthvalue_false_node): Renamed from boolean_false_node.
3297 * c-decl.c: Just set truthvalue_* to integer_*.
3298 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
3300 2003-07-24 Roger Sayle <roger@eyesopen.com>
3302 * c-decl.c (match_builtin_function_types): New subroutine of
3303 duplicate_decls to test whether a redeclaration of a builtin
3304 function is suitably close, i.e. the return type and all of
3305 the argument types have the same modes as the builtin expects.
3306 (duplicate_decls): Fuzzy type matching for builtin functions
3307 moved to match_builtin_function_types.
3309 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3311 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
3314 2003-07-24 Zack Weinberg <zack@codesourcery.com>
3316 * c-decl.c: Search-and-replace change 'binding level' to
3317 'scope' in commentary.
3318 (struct binding_level): Now struct c_scope.
3319 (current_binding_level): Now current_scope.
3320 (free_binding_level): Now scope_freelist.
3321 (current_function_level): Now current_function_scope.
3322 (global_binding_level): Now global_scope.
3323 (make_binding_level): Now make_scope.
3324 (pop_binding_level): Now pop_scope.
3326 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3328 * configure.in (libgcc_visibility): Add missing whitespace.
3330 2003-07-24 Richard Henderson <rth@redhat.com>
3332 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
3333 __gcc_personality_v0.
3335 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3337 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
3339 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
3341 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
3342 documentation missed from my 2003-07-09 patch.
3344 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
3346 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
3348 * configure: Rebuild.
3350 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
3353 * c-typeck.c (type_lists_compatible_p): Do not compare
3354 arguments if one of them is an error_mark_node
3356 2003-07-24 Alan Modra <amodra@bigpond.net.au>
3358 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
3359 if current_function_calls_eh_return.
3361 2003-07-23 Mark Mitchell <mark@codesourcery.com>
3363 * doc/c-tree.texi (OFFSET_TYPE): Update description.
3365 2003-07-23 Bob Wilson <bob.wilson@acm.org>
3367 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
3368 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
3369 __umodsi3, __modsi3): Increase frame size to 32.
3371 2003-07-23 Geoffrey Keating <geoffk@apple.com>
3373 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
3376 2003-07-23 Mark Mitchell <mark@codesourcery.com>
3378 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
3380 PR optimization/10679
3381 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
3383 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3385 PR target/11607 and PR target/11516
3386 * pa.md (extzv, extv, insv): Revert latter half of last patch.
3388 2003-07-22 Mark Mitchell <mark@codesourcery.com>
3390 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
3391 * varasam.c (output_constant): Likewise.
3393 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
3395 * alias.c: Fix comment formatting.
3396 * c-common.c: Likewise.
3397 * c-decl.c: Likewise.
3398 * c-opts.c: Likewise.
3399 * combine.c: Likewise.
3400 * cpplib.c: Likewise.
3401 * diagnostic.c: Likewise.
3402 * dojump.c: Likewise.
3403 * final.c: Likewise.
3404 * fold-const.c: Likewise.
3407 * ggc-page.c: Likewise.
3410 * mips-tfile.c: Likewise.
3411 * recog.c: Likewise.
3412 * regclass.c: Likewise.
3413 * regmove.c: Likewise.
3417 2003-07-22 Per Bothner <pbothner@apple.com>
3419 * line-map.c (add_line_map): Handle invalid LEAVE request.
3420 Fixes PR preprocessor/11361.
3422 2003-07-22 Per Bothner <pbothner@apple.com>
3424 * diagnostic.c.(diagnostic_report_current_module): Update to match
3425 2003-06-05 changes to push_srcloc and pop_srcloc.
3427 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
3429 * doc/trouble.texi: Better document two-stage name lookup.
3431 2003-07-22 Eric Christopher <echristo@redhat.com>
3433 * config/s390.c (s390_valid_pointer_mode): New.
3434 (TARGET_VALID_POINTER_MODE): Use.
3435 (s390_emit_prologue): Add tpf profiling hooks.
3436 (s390_emit_epilogue): Ditto.
3437 * config/s390.h (MASK_TPF): New.
3439 (POINTERS_EXTEND_UNSIGNED): Define.
3440 * config/s390.md (ptr_extend): New pattern.
3442 2003-07-22 Zack Weinberg <zack@codesourcery.com>
3444 * hashtable.c (approx_sqrt): Make static.
3445 * hashtable.h: Don't prototype approx_sqrt.
3446 * line-map.c (init_line_maps): Rename linemap_init.
3447 (free_line_maps): Rename linemap_free.
3448 (add_line_map): Rename linemap_add.
3449 (lookup_line): Rename linemap_lookup.
3450 (print_containing_files): Rename linemap_print_containing_files.
3451 * linemap.h: Update to match.
3453 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
3454 linemap routines to use new names.
3456 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
3458 * c-common.c (handle_packed_attribute): Don't pack a struct via a
3459 typedef. Propagate packedness from a main variant.
3461 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
3463 * Makefile.in (install-common): Add dependency on installdirs.
3465 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
3467 * c-common.c (c_common_type_for_mode): Return integer types for
3470 2003-07-22 Geoffrey Keating <geoffk@apple.com>
3472 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
3473 (finish_decl): Call maybe_apply_pragma_weak here.
3474 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
3475 TREE_PUBLIC and TREE_STATIC are decided.
3476 (start_function): Move call to maybe_apply_pragma_weak. Check that
3477 DECL_ASSEMBLER_NAME isn't set too early.
3479 * cpplex.c (_cpp_process_line_notes): Mention option name in
3482 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
3484 * combine.c (if_then_else_cond): Simplify the comparison of
3485 rtx against -1, 0, and 1.
3486 * loop.c (check_dbra_loop): Likewise.
3487 * optabs.c (emit_conditional_move): Likewise.
3488 (emit_conditional_add): Likewise.
3489 * config/i386/i386.md (*movsi_or): Likewise.
3490 (*movdi_or_rex6): Likewise.
3492 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
3494 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
3496 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
3498 * cppfiles.c (open_file_pch): Don't put unused entries in the
3499 splay tree. Remove dead code.
3501 2003-07-21 Geoffrey Keating <geoffk@apple.com>
3503 * c-common.h (num_in_fnames): Declare.
3504 (c_static_assembler_name): Move from here...
3505 * c-tree.h (c_static_assembler_name): ... to here.
3506 * c-opts.c: Don't include langhooks-def.h.
3507 (c_static_assembler_name): Move to c-decl.c.
3508 (num_in_fnames): Make externally visible.
3509 * c-decl.c: Include langhooks-def.h.
3510 (c_static_assembler_name): Move from c-opts.c.
3511 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
3512 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
3514 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
3515 when it's not needed.
3517 2003-07-21 Jakub Jelinek <jakub@redhat.com>
3519 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
3520 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
3521 (rs6000_emit_prologue): Save FPRs inline if set.
3523 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
3525 * config/ia64/ia64.md (prefetch): Support predicate.
3527 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
3529 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
3530 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
3533 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3535 PR optimization/11536
3536 * unroll.c (loop_iterations): Do not replace a register holding
3537 the final value by its equivalent before the loop if it is not
3540 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
3542 * doc/extend.texi: Fixes to spelling, grammar, and diction.
3544 2003-07-21 Ben Elliston <bje@wasabisystems.com>
3546 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
3547 (V850 Options): Spelling fixes.
3549 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
3551 * doc/invoke.texi: Fixes to style, grammar and diction.
3553 2003-07-20 Roger Sayle <roger@eyesopen.com>
3555 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
3556 * system.h (SMALL_STACK): Poison obsolete target macro.
3557 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
3559 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
3561 * configure.in: Cache the results of testing for cmp's capabilities.
3562 * configure: Regenerate.
3564 2003-07-20 Mark Mitchell <mark@codesourcery.com>
3567 * dwarf2out.c (gen_enumeration_type_die): Remember that
3568 enumerators can be unsigned.
3570 2003-07-19 Zack Weinberg <zack@codesourcery.com>
3572 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
3573 (push_label_level, pop_label_level): Kill.
3574 (struct binding_level): Rename level_chain to outer.
3575 Add outer_function field. Change parm_flag, function_body,
3576 keep, keep_if_subblocks to 1-bit bitfields of type bool.
3577 (current_function_level): New variable.
3578 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
3579 (keep_next_level, declare_parm_level, warn_if_shadowing):
3581 (struct language_function): Kill named_labels, shadowed_labels fields.
3582 (c_init_decl_processing, start_function, c_push__function_context)
3583 (c_pop_function_context): No need to muck with named_labels nor
3586 (make_binding_level): No need to clear the structure here.
3587 (pop_binding_level): Always operate on current_binding_level.
3588 Update current_function_level if necessary.
3589 (pushlevel): Don't clear named_labels. Update current_function_level
3590 if necessary. Use "true" and "false" where appropriate.
3591 (poplevel): Diagnose labels defined but not used, or vice
3592 versa, and clear out label-meanings leaving scope, while
3593 walking down the decls list, for all binding levels.
3594 Handle LABEL_DECLs appearing in the shadowed list.
3595 pop_binding_level takes no arguments.
3596 (pushdecl_function_level): Use current_function_level.
3598 (make_label, bind_label): New static functions.
3599 (declare_label): New exported function.
3600 (lookup_label, define_label): Rewritten for new data structure.
3601 (shadow_label): Kill.
3603 * c-tree.h: Prototype declare_label; don't prototype
3604 push_label_level, pop_label_level, nor shadow_label.
3605 * c-parse.in: Remove all calls to push_label_level and
3606 pop_label_level. Use declare_label for __label__ decls.
3608 * doc/extend.texi: Clarify that __label__ can be used to
3609 declare labels with local scope in any nested block, not
3610 just statement expressions. Cross-reference nested functions
3611 section from local labels section.
3613 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3615 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
3617 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
3619 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
3621 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3623 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
3624 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
3626 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
3628 * config/s390/s390.c (legitimize_pic_address): Access local symbols
3629 relative to the GOT instead of relative to the literal pool base.
3630 (s390_output_symbolic_const): Handle new GOT-relative accesses.
3631 * config/s390/s390.md ("call"): Access local functions and PLT stubs
3632 relative to the GOT instead of relative to the literal pool base.
3633 ("call_value"): Likewise.
3634 ("call_value_tls"): Likewise.
3636 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
3637 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
3638 (s390_chunkify_finish): Likewise.
3639 (s390_chunkify_cancel): Likewise.
3640 (s390_reorg): Adapt caller.
3641 (find_base_register_in_addr,
3642 find_base_register_ref, replace_base_register_ref): Delete.
3643 (find_ltrel_base, replace_ltrel_base): New functions.
3644 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
3645 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
3646 base vs. index register usage.
3647 (struct constant_pool): Remove 'anchor'.
3648 (s390_add_anchor): Delete.
3649 (s390_dump_pool): Remove anchor handling.
3650 * config/s390/s390.md ("reload_anchor"): Remove.
3652 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
3653 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
3654 (s390_emit_prologue): Use it.
3655 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
3656 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
3657 hard-code register 14.
3658 * config/s390/s390-protos.h (s390_load_got): Declare.
3660 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
3661 Support TImode constants.
3662 * config/s390/s390.md ("consttable_ti"): New.
3663 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
3665 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
3666 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
3667 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
3668 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
3669 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
3670 New symbolic constants.
3671 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
3672 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
3673 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
3674 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
3675 symbolic UNSPEC values.
3676 * config/s390/s390.c (larl_operand, s390_short_displacement,
3677 bras_sym_operand, s390_cannot_force_const_mem,
3678 s390_delegitimize_address, s390_decompose_address,
3679 legitimize_pic_address, s390_output_symbolic_const,
3680 s390_function_profiler): Use symbolic UNSPEC values.
3682 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3684 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
3685 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
3686 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
3687 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
3688 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
3689 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
3690 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
3691 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
3692 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
3693 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
3694 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
3695 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
3696 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
3697 postreload.c prefix.c print-tree.c protoize.c ra-build.c
3698 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
3699 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
3700 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
3701 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
3702 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
3703 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
3706 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
3708 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
3709 * toplev.h (warning): Remove attribute.
3711 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
3713 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
3714 (pop_label_level): Likewise.
3715 (duplicate_decls): Likewise.
3716 (implicitly_declare): Likewise.
3717 (shadow_label): Likewise.
3718 (start_decl): Likewise.
3719 (finish_decl): Likewise.
3720 (grokdeclarator): Likewise.
3721 (get_parm_info): Likewise.
3722 (detect_field_duplicates): Likewise.
3723 (finish_struct): Likewise.
3724 (start_function): Likewise.
3725 (store_parm_decls): Likewise.
3726 (finish_function): Likewise.
3727 (c_expand_body_1): Likewise.
3728 (check_for_loop_decls): Likewise.
3729 (merge_translation_unit_decls): Likewise.
3731 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
3733 * common.opt: Document --param.
3734 * opts.c (columns, undocumented_msg): New.
3735 (print_help): Get number of columns from environment. Print
3736 --param help. Tweak newline handling.
3737 (print_param_help): New.
3738 (print_filtered_help): Better handling of duplicates. Complain
3739 about undocumented switches.
3740 (print_switch): New.
3741 (wrap_help): Improve wrapping, use COLUMNS.
3742 * opts.sh: Ignore comments in records.
3743 * params.def: Fix typos and remove trailing periods.
3744 * toplev.c (display_help): Don't dump --param help.
3745 * doc/sourcebuild.texi: Update.
3747 2003-07-18 Richard Henderson <rth@redhat.com>
3750 * optabs.c (prepare_operand): Fail gracefully instead of abort
3751 if the predicate doesn't satisfy.
3752 (gen_cond_trap): Allow prepare_operand to fail.
3754 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
3756 * c-common.c: Don't undefine GCC_DIAG_STYLE.
3757 (fname_decl): Don't use xxx_with_decl.
3758 (c_add_case_label): Likewise.
3759 (handle_section_attribute): Likewise.
3760 (handle_alias_attribute): Likewise.
3761 (handle_no_instrument_function_attribute): Likewise.
3762 (handle_no_limit_stack_attribute): Likewise.
3763 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
3764 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
3766 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3768 * Makefile.in (ifcvt.o): Add cfgloop.h.
3769 * basic-block.h (EDGE_LOOP_EXIT): New flag.
3770 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
3771 * ifcvt.c: Include cfgloop.h.
3772 (mark_loop_exit_edges): New static function.
3773 (if_convert): Call it.
3774 (find_if_header): Ignore branches out of loops.
3776 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
3778 * combine.c (simplify_comparison): Don't share rtx when converting
3779 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
3781 2003-07-18 David Edelsohn <edelsohn@gnu.org>
3783 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
3784 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3785 (MUST_PASS_IN_STACK): Define.
3786 (BLOCK_REG_PADDING): Define.
3788 2003-07-18 Richard Henderson <rth@redhat.com>
3790 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
3791 to skip the addr_vec.
3793 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
3795 * combine.c (combinable_i3pat): Don't forbid occurrences of
3796 i2dest or i1dest in inner_dest if inner_dest is a mem.
3798 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
3800 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
3802 2003-07-17 Jakub Jelinek <jakub@redhat.com>
3805 * loop.c (basic_induction_var): Check if convert_modes emitted any
3806 instructions. Remove them and return 0 if so.
3808 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3810 PR optimization/11083
3811 * toplev.c (rest_of_handle_addresof): Rename into
3812 rest_of_handle_addressof. Delete unreachable blocks
3813 if dead edges were purged after the addressof pass.
3815 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
3817 * Makefile.in, configure, configure.in: Remove handling of
3818 lang-options.h and options_.h.
3819 * toplev.c (struct lang_opt, documented_lang_options): Remove.
3820 (display_help): Don't use documented_lang_options.
3822 2003-07-17 Zack Weinberg <zack@codesourcery.com>
3824 * c-decl.c (pushdecl_function_level): Make static, return nothing.
3825 (kept_level_p): Fold into poplevel.
3826 (undeclared_variable): Moved here from c-typeck.c. Export.
3827 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
3828 (undeclared_variable): Prototype here. Don't prototype
3829 kept_level_p nor pushdecl_function_level.
3830 * c-parse.in: Change first argument to poplevel from
3831 "kept_level_p()" to "KEEP_MAYBE".
3832 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
3834 2003-07-17 Roger Sayle <roger@eyesopen.com>
3836 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
3837 commutative operands instead of modifying the RTL in-place.
3839 2003-07-17 Mark Mitchell <mark@codesourcery.com>
3841 PR optimization/11557
3842 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
3843 unless we know which function is being called.
3845 2003-07-17 Roger Sayle <roger@eyesopen.com>
3847 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
3848 whether to reorder the operands of a commutative binary operator.
3850 2003-07-17 Roger Sayle <roger@eyesopen.com>
3852 * fold-const.c (const_binop): Avoid performing the FP operation at
3853 compile-time, if either operand is NaN and we honor signaling NaNs,
3854 or if we're dividing by zero and either flag_trapping_math is set
3855 or the desired mode doesn't support infinities.
3856 (fold_initializer): New function to fold an expression ignoring any
3857 potential run-time exceptions or traps.
3858 * tree.h (fold_initializer): Prototype here.
3859 * c-typeck.c (build_binary_op): Move to the end of the file so
3860 that intializer_stack is in scope. If constructing an initializer,
3861 i.e. when initializer_stack is not NULL, use fold_initializer to
3863 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
3864 performing FP operations at compile-time, if they would raise an
3865 exception at run-time.
3867 2003-07-17 Geoffrey Keating <geoffk@apple.com>
3870 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
3871 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
3872 (GTFILES): Add langhooks.c.
3873 (gt-langhooks.h): New.
3874 * c-common.h (c_static_assembler_name): Prototype.
3875 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
3876 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
3877 * c-opts.c: Include langhooks-def.h.
3878 (c_static_assembler_name): New.
3879 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
3881 (lhd_set_decl_assembler_name): Give static objects with context
3883 * varasm.c (var_labelno): Delete.
3884 (make_decl_rtl): Don't change the assembler name once it's set.
3886 * c-opts.c (this_input_filename): New.
3887 (finish_options): Take new parameter, name of file being compiled.
3888 Update callers. Set this_input_filename.
3889 (push_command_line_include): Use this_input_filename not
3890 main_input_filename.
3892 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
3894 * Makefile.in: Depend .pot generation on options.c.
3895 * po/exgettext: Add an extra_files variable containing additional
3898 2003-07-17 Zack Weinberg <zack@codesourcery.com>
3900 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
3901 c_write_global_declarations.
3903 * c-decl.c: Fix typos in several comments. Remove all
3904 #if 0 blocks; reindent as needed. Remove unused argument
3905 to declare_parm_level; all callers changed.
3906 * c-parse.in: Update calls to declare_parm_level. Avoid
3907 issuing a double warning in some circumstances.
3908 * c-typeck.c: Update calls to declare_parm_level.
3909 * c-tree.h: Update prototype of declare_parm_level.
3911 * c-pragma.c (apply_pragma_weak): Don't complain about a
3912 redundant #pragma weak.
3914 * objc/objc-act.c (forward_declare_categories,
3915 build_selector_reference_decl, build_class_reference_decl,
3916 build_objc_string_decl, synth_forward_declarations,
3917 build_protocol_reference): Set TREE_PUBLIC on synthetic
3918 forward decl to 0, consistent with eventual definition.
3919 Correct comments to match.
3921 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
3922 in regexp that don't form a range expression.
3923 * fixinc/fixincl.def: Regenerate.
3925 2003-07-17 Richard Henderson <rth@redhat.com>
3928 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
3929 even with !TARGET_CONST_GP.
3930 (ia64_function_ok_for_sibcall): Reject non-local functions.
3932 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
3934 * c-common.c (c_estimate_num_insns_1): Don't handle
3936 * expr.c (safe_from_p): Likewise.
3937 * gengtype.c (adjust_field_tree_exp): Likewise.
3938 * stmt.c (warn_if_unused_value): Likewise
3939 * tree.c (first_rtl_op): Likewise.
3940 * tree.def: Don't define METHOD_CALL_EXPR.
3941 * java/lang.c (java_estimate_num_insns_1): Don't handle
3944 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3947 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
3948 and its restrictions for the SPARC64 port.
3949 Move the entry of "-mimpure-text" before that of "-mv8".
3951 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3952 Phil Edwards <phil@jaj.com>
3954 * doc/install.texi (*-*-solaris2*): Document the step-by-step
3955 procedure to bootstrap and install.
3956 Document the preference for the legacy Sun tools in /usr/bin
3957 over the POSIX tools in /usr/xpg4/bin for the build process.
3959 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
3961 * c.opt: Document Uncodumented; use it. Document ObjC options.
3962 * opts.c (print_filtered_help): Skip undocumented switches.
3963 * opts.h (CL_UNDOCUMENTED): New.
3964 * opts.sh: Handle Undocumented.
3965 * toplev.c (documented_lang_options): Prevent its becoming empty.
3967 * lang-options.h: Remove.
3969 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
3971 * loop.c (check_ext_dependent_givs): Pass const struct loop *
3972 instead of struct loop_info * as argument. Accept BIVs with
3973 increment +/- 1 provided there is a friendly exit test against
3974 a loop-invariant value.
3975 (strength_reduce): Adapt call to check_ext_dependent_givs.
3977 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
3978 Con Bradley <con.bradley@superh.com>
3980 * sh-protos.h (sh_get_pr_initial_val): Declare.
3981 * sh.c (regno_reg_class): Make its elements type enum reg_class.
3982 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
3983 and live_regs_mask arguments. Changed all callers.
3984 (save_schedule_s): New structure.
3985 (save_schedule): New typedef.
3986 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
3987 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
3988 In interrupts handlers, also save registers that are usually
3989 partially saved, and make sure there is at least one general purpose
3990 register saved if a target register needs saving.
3991 Add casts in comparisons to avoid warnings.
3992 (sh_media_register_for_return): return -1 for interrupt handlers.
3993 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
3994 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
3995 registers used are available.
3996 Set RTX_FRAME_RELATED_P where appropriate.
3997 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
3998 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
3999 (initial_elimination_offset): Likewise.
4000 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
4001 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
4002 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
4003 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
4004 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
4005 and for target registers.
4006 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
4007 (regno_reg_class): Make its elements type enum reg_class.
4008 (CONSTRAINT_LEN): Don't use isdigit.
4009 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
4010 (FUNCTION_ARG): Add parentheses to avoid warnings.
4011 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
4012 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
4013 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
4014 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
4015 * sh.md (xordi3+1): Remove unused variable regno.
4016 (return_media): Check that tr0 is available before using it.
4018 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
4020 * c.opt: Document more options.
4022 2003-07-16 Roger Sayle <roger@eyesopen.com>
4024 * combine.c (subst): Also handle (subreg (const_double ...)) case
4025 if created by a substitution, by using the original inner mode.
4027 2003-07-16 Roger Sayle <roger@eyesopen.com>
4029 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
4030 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
4031 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
4033 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
4035 * doc/install.texi (--without-headers): New.
4037 Partial Fix PR/10129
4038 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
4039 (machopic_output_function_base_name): New; print the true pic label.
4040 (machopic_classify_ident): Pic Base is always a defined data.
4041 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
4042 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
4044 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
4045 if they are not floating point registers.
4048 * ggc.h: Add header guards.
4049 * c-decl.c (finish_struct): Sort fields if
4050 number greater than 15 and there are no
4051 anonymous structs/unions.
4052 * c-common.h: Include ggc.h.
4053 (sorted_fields_type): New struct.
4054 (field_decl_cmp): New prototype.
4055 (resort_sorted_fields): New prototype.
4056 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
4057 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
4058 as s, removing other fields.
4059 * c-typeck.c (lookup_field): Use s in lang_type.
4060 These were mostly moved from cp/class.c:
4061 * c-common.c (field_decl_cmp): New static function.
4062 (field_decl_cmp): New function.
4063 (resort_sorted_fields): New function.
4065 2003-07-16 Geoffrey Keating <geoffk@apple.com>
4067 * config/darwin.c (machopic_select_section): Use decl_readonly_section
4068 to do most of the work.
4070 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
4072 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
4073 * config/mmix/mmix.c: Convert functions to ISO C90.
4074 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
4076 (mmix_get_hard_reg_initial_val): Tweak section head comment.
4078 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
4080 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
4082 2003-07-16 Jakub Jelinek <jakub@redhat.com>
4084 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
4085 (uw_update_context_1): Use it.
4086 * config/rs6000/rs6000.c (insn_after_throw): Remove.
4087 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
4088 in parent frame if _Unwind_* called directly instead of through
4090 (rs6000_emit_eh_toc_restore): Remove.
4091 (rs6000_emit_prologue): Update stack pointer before doing any saving
4092 if current_function_calls_eh_return. Generate unwind info for $r2.
4093 (rs6000_emit_epilogue): Restore stack pointer after doing all
4094 restoring if current_function_calls_eh_return. Restore $r2.
4095 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
4096 * config/rs6000/rs6000.md (eh_return): Remove call to
4097 rs6000_emit_eh_toc_restore.
4098 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
4099 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
4101 2003-07-15 Jakub Jelinek <jakub@redhat.com>
4103 * expr.c (emit_block_move): Don't move anything if size is const 0.
4104 (clear_storage): Test against const0_rtx instead of comparing INTVAL
4107 2003-07-15 David S. Miller <davem@redhat.com>
4109 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
4110 emit nop if the last real insn is CALL_INSN.
4112 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
4114 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
4116 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
4118 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
4120 * config/i386/winnt.c (associated_type): Artificial methods are not
4121 affected by the import/export status of their class unless they are
4123 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
4125 * config/i386/winnt.c: Fix GCC copyright comment.
4127 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
4130 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
4131 not recursing on hard error.
4132 (diagnostic_for_decl): Likewise.
4133 * diagnostic.def: Rearrange.
4135 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
4137 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
4138 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
4140 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
4141 Richard Henderson <rth@redhat.com>
4143 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
4144 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
4145 (_Unwind_SetGR): Likewise.
4146 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
4147 (Unwind_SpTmp): New typedef.
4148 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
4149 (uw_update_context): Use _Unwind_GetPtr.
4150 (init_dwarf_reg_size_table): Move above uw_init_context_1.
4151 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
4152 Use _Unwind_SetSpColumn.
4153 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
4156 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
4158 * c.opt: Document more options.
4159 * toplev.c (documented_lang_options): Remove all local help strings.
4161 2003-07-15 Mark Mitchell <mark@codesourcery.com>
4164 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
4167 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
4170 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
4171 swap comparison operands if doing so would generate an
4172 unrecognizable insn.
4174 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
4176 PR optimization/11320
4177 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
4178 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
4179 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
4180 current_sched_info->compute_jump_reg_dependencies. Record which
4181 registers are used and which registers are set by the jump.
4182 Clear deps->reg_conditional_sets after a barrier.
4183 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
4184 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
4185 (init_deps): Initialize reg_conditional_sets.
4186 (free_deps): Clear reg_conditional_sets.
4187 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
4188 Mark registers live on entry of the fallthrough block and conditionally
4189 set as set by the jump. Mark registers live on entry of non-fallthrough
4190 blocks as used by the jump.
4191 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
4192 Mark new parameters as unused.
4194 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
4196 * doc/invoke.texi: Resync MIPS -march documentation.
4198 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
4200 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
4201 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
4202 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
4203 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
4204 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
4205 (mips_issue_rate): Handle PROCESSOR_R9000.
4206 (mips_use_dfa_pipeline_interface): Likewise.
4207 * config/mips/9000.md: New file.
4208 * config/mips/mips.md: Include it.
4209 (define_attr cpu): Add r9000.
4210 (mulsi3_mult3): Use "mul" for rm9000 code.
4212 2003-07-15 Stan Cox <scox@redhat.com>
4214 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
4215 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
4216 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
4217 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
4218 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
4219 (mips_issue_rate): Handle PROCESSOR_R7000.
4220 (mips_use_dfa_pipeline_interface): Likewise.
4221 * config/mips/7000.md: New file.
4222 * config/mips/mips.md: Include it.
4223 (define_attr cpu): Add r7000.
4224 (mulsi3_mult3): Use "mul" for rm7000 code.
4226 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
4228 * config/mips/mips.md (define_attr type): Add condmove. Use it for
4229 the conditional move patterns.
4230 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
4231 Check for condmove type.
4232 (ir_vr54_arith): Add move type.
4233 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
4234 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
4236 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
4238 * c-opts.c (print_help): Remove.
4239 (c_common_handle_option): Don't handle --help.
4240 * c.opt: Document some options.
4242 * opts.c (print_filtered_help): New.
4243 (print_help): Use it.
4245 2003-07-14 Geoffrey Keating <geoffk@apple.com>
4247 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
4248 * tree.c: (build_common_tree_nodes_2): Likewise.
4249 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
4250 (V4DF_type_node): New.
4252 * c-opts.c (push_command_line_include): Don't free deferred_opts,
4254 (finish_options): Reset init_cursor.
4256 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
4258 * expr.c (expand_assignment): Remove an unused argument
4260 * expr.h: Update the prototype.
4261 * function.c: Update the callers.
4264 2003-07-14 Mark Mitchell <mark@codesourcery.com>
4267 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
4270 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4272 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
4273 with __cplusplus, not "we must use the C++ compiler's type"
4274 * fixinc/inclhack.def (void_null): Note that Interix needs this.
4275 * fixinc/fixincl.x: Regenerate.
4277 2003-07-14 Geoffrey Keating <geoffk@apple.com>
4279 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
4280 and unseen_objects from the global data before calling
4281 __deregister_frame_info_bases.
4282 (examine_objects): Insert objects into the seen_objects list,
4284 (_Unwind_Find_FDE): Always unlock the global object lists, even if
4285 we couldn't allocate a data structure to put in it.
4287 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
4288 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
4289 (SET_TYPE_PROTOCOL_LIST): New.
4290 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
4291 (get_object_reference): Likewise.
4293 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
4295 * cfglayout.c (locator_file): Break out from ....
4296 (insn_file): ... here.
4297 (locator_line): Break out from ....
4298 (insn_line): ... here.
4299 * rtl.h (locator_file, locator_line): Declare.
4300 (final_start_function): Set proper line/file info.
4302 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
4304 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
4305 handled by pp_c_cast_expression.
4307 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
4309 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
4310 allocate 32768 bytes of stack. Use addition rather than subtraction
4311 when a single insn is enough.
4312 * config/mips/mips.md: Remove insns and splitters for subtracting
4314 (subsi3): Only accept register operands.
4315 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
4316 (subdi3_internal_3, subsi3_internal_2): Likewise.
4317 (casesi): Use expand_binop to subtract the lower bound.
4319 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
4321 * config/mips/mips.c (mips_in_small_data_p): Don't handle
4322 TARGET_MIPS16 specially.
4324 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
4326 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
4327 mips_output_aligned_bss.
4328 * config/mips/linux.h: Likewise.
4329 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
4330 * config/mips/mips.c (mips_output_aligned_bss): New function.
4332 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
4333 * config/mips/elf64.h: Likewise.
4335 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
4336 mips_declare_object_name.
4337 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
4338 * config/mips/elf64.h: As for elf.h.
4339 * config/mips/iris6.h: Likewise.
4340 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
4341 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
4342 do...while (0) block.
4343 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
4344 (mips_finish_declare_object): Declare.
4345 * config/mips/mips.c (mips_declare_object_name): New function.
4346 (mips_finish_declare_object): New function.
4348 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
4349 * config/mips/linux.h: Likewise.
4351 * config/mips/mips.c (inside_function): Delete.
4352 (file_in_function_warning, ignore_line_number): Delete.
4353 (mips_output_filename): Don't warn about changing filenames within
4355 (mips_output_lineno): Update accordingly.
4356 (mips_output_function_prologue): Don't reset the deleted variables.
4357 * config/mips/mips.h (inside_function): Delete.
4358 (file_in_function_warning, ignore_line_number): Delete.
4360 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
4361 * config/mips/elf64.h: Likewise.
4362 * config/mips/openbsd.h: Likewise.
4363 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
4364 * config/mips/linux.h: Likewise.
4365 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
4366 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
4368 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
4369 to the list of include files when using gas.
4370 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
4371 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
4372 * config/mips/elf64.h: Likewise.
4373 * config/mips/iris5.h: Likewise.
4374 * config/mips/linux.h: Likewise.
4375 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
4376 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
4377 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
4378 * config/mips/sdb.h: ...this new file.
4380 2003-07-14 Douglas Rupp <rupp@gnat.com>
4382 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
4383 argument to getcwd; use fixed buffer instead.
4385 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4387 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
4388 * fixinc/fixinc.wrap: Delete.
4390 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
4392 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
4395 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
4397 * ggc-page.c (struct globals): Add new fields to keep track of the
4398 total allocated memory and overhead.
4399 (ggc_print_statistics): Print them.
4400 (ggc_alloc): Keep track of the total allocated memory and the
4403 * tree.c (dump_tree_statistics): Increase spacing.
4404 (enum tree_node_kind): Move to ...
4405 * tree.h (enum tree_node_kind): ... here.
4406 (tree_node_counts, tree_node_sizes): Declare.
4408 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
4410 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
4412 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4414 PR optimization/11440
4415 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
4418 2003-07-14 Alan Modra <amodra@bigpond.net.au>
4420 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
4421 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
4422 (emit_group_load, emit_group_store): Adjust declarations.
4423 Remove most occurrences of #ifdef TREE_CODE.
4424 * expr.c (emit_group_load): Add "type" param, and use
4425 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
4426 aligned accesses if !SLOW_UNALIGNED_ACCESS.
4427 (emit_group_store): Likewise.
4428 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
4429 emit_group_load and emit_group_store calls.
4430 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
4431 BLOCK_REG_PADDING to determine whether we need endian_correction.
4432 (load_register_parameters): Localize vars. Handle shifting of
4433 small values to the correct end of regs. Adjust emit_group_load
4435 (expand_call, emit_library_call_value_1): Adjust emit_group_load
4436 and emit_group_store calls.
4437 * function.c (assign_parms): Set mem alignment for stack slots.
4438 Adjust emit_group_store call. Store values at the "wrong" end
4439 of regs to the stack. Use BLOCK_REG_PADDING.
4440 (locate_and_pad_parm): Save where_pad.
4441 (expand_function_end): Adjust emit_group_load call.
4442 * stmt.c (expand_value_return): Adjust emit_group_load call.
4443 * Makefile.in (calls.o): Depend on $(OPTABS_H).
4444 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
4445 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
4446 (MUST_PASS_IN_STACK): Define.
4447 (BLOCK_REG_PADDING): Define.
4448 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
4449 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
4450 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
4451 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
4452 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
4454 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
4456 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
4458 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4460 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
4461 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
4463 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
4466 * toplev.c: Don't cut off option names.
4468 2003-07-13 Andreas Jaeger <aj@suse.de>
4470 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
4471 to integer of different size.
4473 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
4475 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
4476 to (eq (and X 1) 0).
4478 2003-07-13 Andreas Jaeger <aj@suse.de>
4480 * config.gcc: Add pmmintrin.h for x86_64-*-*.
4482 2003-07-13 Zack Weinberg <zack@codesourcery.com>
4484 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
4485 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
4486 list. Move these all together down by cpplib.
4488 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
4489 definition of CPPCHAR_SIGNED_T.
4491 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
4492 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
4493 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
4495 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
4496 * cppinit.c (cpp_create_reader): Likewise.
4498 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
4499 * cpptrad.c: Likewise. All callers changed.
4500 * cpplib.c: All callers changed.
4501 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
4502 * hashtable.h: Define GTY(x) to nothing here too.
4504 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4506 * stor-layout.c (compute_record_mode): Remove very obsolete test
4507 that forces BLKmode for records with fields crossing word boundary.
4509 2003-07-13 Zack Weinberg <zack@codesourcery.com>
4511 * Makefile.in: Remove orphan reference to acconfig.h.
4513 2003-07-13 Andreas Jaeger <aj@suse.de>
4515 * cgraphunit.c: Convert prototypes to ISO C90.
4517 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
4519 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
4521 * fixinc/fixincl.x: Rebuild.
4523 2003-07-12 Zack Weinberg <zack@codesourcery.com>
4525 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
4526 i?86-*-*. Use correct name of cache variable.
4527 * configure: Regenerate.
4529 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
4531 * config/alpha/alpha.c: Fix comment typos.
4532 * config/alpha/alpha.md: Likewise.
4533 * config/arm/arm.c: Likewise.
4534 * config/arm/arm.md: Likewise.
4535 * config/arm/lib1funcs.asm: Likewise.
4536 * config/avr/avr.md: Likewise.
4537 * config/arm/README-interworking: Fix typos.
4539 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
4541 * c-format.c: Fix comment formatting.
4542 * c-typeck.c: Likewise.
4543 * coverage.c: Likewise.
4544 * cppcharset.c: Likewise.
4545 * cpplib.c: Likewise.
4546 * dbxout.c: Likewise.
4547 * gcov-io.h: Likewise.
4548 * toplev.c: Likewise.
4550 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
4552 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
4555 2003-07-12 Zack Weinberg <zack@codesourcery.com>
4557 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
4558 uses three-argument AC_DEFINE so no acconfig.h entries are
4560 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
4561 which contains the GAS version number as a scaled integer.
4562 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
4563 ability to check for ELF assembler.
4564 (gcc_GAS_CHECK_FEATURE): New macro.
4565 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
4566 assembler feature checks using gcc_GAS_CHECK_FEATURE.
4567 Use three-argument AC_DEFINE everywhere.
4568 * acconfig.h: Deleted.
4569 * config.in, configure: Regenerate.
4571 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
4573 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
4575 * fixinc/fixincl.x: Regenerate.
4577 * fixinc/inclhack.def (gnu_types): Improve comment.
4579 2003-07-12 Andreas Jaeger <aj@suse.de>
4581 * fp-test.c (main): Use ISO C90 prototype.
4583 * version.c: Remove unneded include of ansidecl.h.
4585 * cgraph.h: Convert prototypes to ISO C90.
4586 * cgraph.c: Likewise.
4587 * fix-header.c: Likewise.
4589 * protoize.c: Likewise.
4591 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
4593 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
4596 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
4597 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4599 * cgraph.c (cgraph_max_uid): New global variable.
4600 (cgraph_node): Set uid field.
4601 (create_edge): Keep inline flags consistent.
4602 (dump_cgraph): Dump more info.
4603 * cgraph.h (struct cgraph_local_info): Remove inline_many and
4604 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
4605 (struct cgraph_global_info): Add insns, calls, cloned_times,
4607 (struct cgraph_node): Add uid.
4608 (struct cgraph_edge): Add inline_call.
4609 (cgraph_max_uid, cgraph_inline_p): Declare.
4610 * cgraph.c: Include params.h and fibheap.h
4611 (cgraph_mark_functions_to_inline_once): Kill.
4612 (INSNS_PER_CALL): New constant.
4613 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
4615 (cgraph_finalize_function): Do not analyze inlining.
4616 (cgraph_finalize_compilation_unit): Set inlining attributes.
4617 (cgraph_mark_functions_to_output): More consistency checks.
4618 (cgraph_optimize_function): Set current_function_decl to NULL.
4619 (cgraph_expand_function): Use new inline flags.
4620 (cgraph_postorder): Expand from cgraph_expand_functions.
4621 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
4622 (cgraph_inlined_into, cgraph_inlined_callees,
4623 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
4624 cgraph_mark_inline, cgraph_check_inline_limits,
4625 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
4626 cgraph_decide_inlining, cgraph_inline_p): New functions.
4627 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
4628 PARAM_INLINE_UNIT_GROWTH): New parameters.
4629 * tree-inline.c (struct inline_data): New field current_decl.
4630 (expand_call_inline): Avoid forward declarations; use
4631 inlinable_function_p.
4632 (optimize_inline_calls): Set id.current_decl.
4634 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
4636 * configure.in: Remove wrongly added definition of
4638 * configure: Regenerate.
4640 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4642 * rtl.def (NOTE): Do not use padding.
4644 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
4646 * doc/install.tex: Update required binutils for i?86-*-linux*
4648 2003-07-11 Richard Henderson <rth@redhat.com>
4650 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
4652 2003-07-11 Mark Mitchell <mark@codesourcery.com>
4654 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
4655 TRANSLATION_UNIT_DECL as top_level.
4657 2003-07-11 Jakub Jelinek <jakub@redhat.com>
4659 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
4660 then fall back to cmpstrM.
4661 * builtins.c (expand_builtin_memcmp): Likewise.
4662 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
4663 (s390_expand_cmpmem): ... this.
4664 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
4665 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
4666 from cmpstr* patterns. Rename call to s390_expand_cmpstr
4667 to s390_expand_cmpmem.
4668 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
4669 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
4671 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
4673 * doc/md.texi (cmpstrM): Describe as String compare insn, not
4677 2003-07-11 Loren James Rittle <ljrittle@acm.org>
4679 * config/i386/freebsd.h (SET_ASM_OP): Remove.
4680 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
4681 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
4682 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
4684 2003-07-11 Richard Henderson <rth@redhat.com>
4686 * function.c (assign_parms): Don't recombine complex args if
4687 fnargs is unchanged from orig_fnargs.
4688 (split_complex_args): Return args without complex before copying.
4689 Re-layout the modified parameters.
4691 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
4693 * regclass.c (choose_hard_reg_mode): Add third argument.
4694 Changed all callers.
4695 * rtl.h (choose_hard_reg_mode): Update declaration.
4696 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
4697 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
4699 2003-07-11 Geoffrey Keating <geoffk@apple.com>
4701 * c-decl.c (finish_decl): Handle 'used' here...
4702 * cgraphunit.c (cgraph_finalize_function): ... and here ...
4703 * c-common.c: (handle_used_attribute): ... not here.
4705 * configure.in (onstep): Support --enable-intermodule.
4706 * Makefile.in (OBJS-common): New.
4708 (OBJS-archive): New.
4709 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
4710 (OBJS-onestep): New.
4711 (libbackend.a): Support @onestep@.
4712 (libbackend.o): New.
4713 * configure: Regenerate.
4715 * c-common.h (c_reset_state): New prototype.
4716 (c_parse_file): New prototype.
4717 (finish_file): Move prototype from c-tree.h.
4718 * c-decl.c: Include <hashtab.h>.
4719 (builtin_decls): New.
4720 (current_file_decl): New.
4721 (duplicate_decls): Add extra parameter. Change all callers. Don't
4722 output duplicate common symbols.
4723 (link_hash_hash): New.
4724 (link_hash_eq): New.
4725 (poplevel): Handle popping of the top level.
4726 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
4727 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
4728 (pushdecl_top_level): Likewise.
4729 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
4730 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
4731 (finish_decl): Handle TRANSLATION_UNIT_DECL.
4732 (merge_translation_unit_decls): New.
4733 (c_write_global_declarations): New.
4734 (c_reset_state): New.
4735 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
4736 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
4737 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
4738 TRANSLATION_UNIT_DECL.
4739 (c_objc_common_finish_file): Call merge_translation_unit_decls.
4740 * c-opts.c (in_fnames): Rename from in_fname.
4741 (c_common_decode_option): Handle multiple input filenames.
4742 (c_common_post_options): Likewise.
4743 (c_common_parse_file): Likewise; also, call c_parse_file rather than
4745 * c-parse.in: Move cleanup code to c_parse_file.
4746 (free_parser_stacks): Move contents to c_parse_file.
4747 (c_parse_file): New.
4748 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
4750 (C_DECL_FILE_SCOPE): New.
4751 (finish_file): Move prototype to c-common.h.
4752 (merge_translation_unit_decls): New prototype.
4753 (comptypes): Add extra parameter to prototype.
4754 (c_write_global_declarations): New prototype.
4755 * c-typeck.c (tagged_types_tu_compatible_p): New.
4756 (function_types_compatible_p): Add extra parameter, change all callers.
4757 (type_lists_compatible_p): Likewise.
4758 (comptypes): Likewise.
4759 (struct tagged_tu_seen): New.
4760 (tagged_tu_seen_base): New.
4761 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
4762 (c_mark_addressable): Remove #if 0 code.
4763 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
4764 comment explaining why it shouldn't have to.
4765 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
4767 * cppinit.c (cpp_read_next_file): New.
4768 (cpp_read_main_file): Use it.
4769 * cpplib.c (undefine_macros): New.
4770 (cpp_undef_all): New.
4771 * cpplib.h (cpp_read_next_file): Prototype.
4772 (cpp_undef_all): Prototype.
4773 * langhooks-def.h (write_global_declarations): Remove prototype.
4774 * toplev.h (write_global_declarations): Add prototype.
4775 * tree.c (decl_type_context): Use switch statement, handle
4776 TRANSLATION_UNIT_DECL.
4777 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
4778 (TRANSLATION_UNIT_DECL): New kind of tree.
4779 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
4780 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
4781 * doc/invoke.texi: Make attempt to document new functionality.
4783 2003-05-19 Per Bothner <bothner@apple.com>
4785 * gcc.c (combine_inputs): New.
4786 (process_command): Set combine_inputs.
4787 (do_spec_1): Handle combine_inputs.
4790 2003-07-10 James E Wilson <wilson@tuliptree.org>
4792 PR optimization/9745
4793 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
4794 loop_insn_emit_before.
4795 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
4797 2003-07-10 Zack Weinberg <zack@codesourcery.com>
4799 * cppcharset.c: Fix comment.
4800 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
4801 (EILSEQ): #define to EINVAL if not already defined.
4802 (convert_using_iconv): #if out when !HAVE_ICONV.
4803 (init_iconv_desc): Handle !HAVE_ICONV here...
4804 (cpp_init_iconv): ...not here.
4806 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
4808 * common.opt: More --help messages.
4809 * opts.c (print_help): Use puts().
4810 * toplev.c (f_options): Remove help text.
4811 (display_help): Don't dump f_options.
4813 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
4815 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
4816 Move i?86-*-interix* to the don't-fix list.
4817 * fixinc/fixinc.interix: Delete with extreme prejudice.
4819 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
4822 * doc/install.texi: Document requirements for ia64-*-hpux* target.
4824 2003-07-10 Roger Sayle <roger@eyesopen.com>
4826 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
4828 2003-07-10 Zack Weinberg <zack@codesourcery.com>
4830 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
4831 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
4832 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
4833 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
4834 convert_no_conversion, convert_using_iconv): New functions.
4835 (APPLY_CONVERSION): New macro.
4836 (struct conversion, conversion_tab): New data structure.
4837 (init_iconv_desc): Check conversion_tab for a custom conversion
4838 primitive before trying to use iconv.
4839 (convert_cset): Deleted.
4840 (cpp_init_iconv): Use UTF- terminology, not UCS-.
4841 (_cpp_destroy_iconv): Update to match.
4842 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
4843 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
4844 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
4845 (_cpp_interpret_string_notranslate): New function, moved here
4848 * cpphash.h (convert_f, struct cset_converter): New types.
4849 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
4850 are now struct cset_converter, not bare iconv_t.
4852 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
4853 all callers changed.
4855 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
4857 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
4858 to opts.sh command line.
4859 * opts.sh: Write to temporary files with a move-if-change at the end.
4861 2003-07-10 Denis Chertykov <denisc@overta.ru>
4862 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4864 * combine.c (gen_binary): Handle the CLOBBER rtx and
4865 don't build a binary operation with it.
4867 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4869 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
4870 store_killed_after, store_killed_before): Keep track of the correct
4871 dependency function to use.
4873 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
4874 * toplev.c (do_compile): Don't try to open dump files before
4875 lang_dependent_init initializes dump_base_name.
4877 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4879 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
4881 * config/frv/frv.c (frv_expand_builtin): Likewise.
4882 * config/sh/sh.c (sh_media_init_builtins): Likewise.
4884 2003-07-09 Mark Mitchell <mark@codesourcery.com>
4887 * doc/invoke.texi (C++ Dialect Options): Change documentation of
4890 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
4892 * tm.texi (RETURN_ADDR_OFFSET): Document.
4894 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
4896 * gcov-io.h: Update documentation.
4897 (GCOV_UNSIGNED2STRING): New.
4898 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
4899 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
4900 GCOV_TAG_SUMMARY_LENGTH): Adjust.
4901 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
4902 GCOV_TAG_COUNTER_NUM): New.
4903 (GCOV_BLOCK_SIZE): Number of words.
4904 (gcov_var): Adjust buffer type.
4905 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
4906 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
4907 count, not byte count.
4908 (gcov_open): Adjust overread init.
4909 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
4910 gcov_write_string, gcov_write_tag, gcov_write_length,
4911 gcov_write_tag_length): Adjust.
4912 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
4913 (gcov_sync, gcov_seek): Adjust.
4914 * gcov-dump.c (print_usage): Show gcc version only.
4915 (dump_file): Use GCOV_UNSIGNED2STRING.
4916 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
4917 * gcov.c (print_version): Show gcc version only.
4918 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
4919 GCOV_TAG_*_NUM macros.
4920 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
4921 GCOV_TAG_COUNTER_LENGTH.
4922 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
4923 Use GCOV_TAG_COUNTER_NUM.
4924 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
4925 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
4927 2003-07-10 Andreas Schwab <schwab@suse.de>
4929 * gcov-dump.c (dump_file): Fix missing address operator.
4931 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
4934 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
4936 (fold_single_bit_test): If sign_bit_p() fails, assume that the
4937 bit being tested is not a sign bit.
4939 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
4941 * config/h8300/h8300.md (a peephole2): New.
4943 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
4945 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
4946 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
4947 from ld-linux.so.2 to ld.so.1.
4948 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
4949 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
4950 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
4951 nor -Wl,-rpath-link.
4952 (LIB_SPEC): Add -rpath-link if !static.
4953 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
4954 * config/mn10300/mn10300.c (mn10300_protect_label): New
4956 * config/mn10300/linux.h (PRINT_OPERAND,
4957 PRINT_OPERAND_ADDRESS): Set it during their execution.
4958 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
4959 mn10300_protect_label is set.
4960 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
4962 (LIB_SPEC, STARTFILE_SPEC): Define.
4963 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
4964 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
4965 FLOAT_BIT_ORDER_MISMATCH.
4966 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
4967 * config.gcc (am33_2.0-*-linux*): Added.
4968 * config/mn10300/linux.h: New.
4969 * config/mn10300/t-linux: New.
4971 2003-07-10 Andreas Jaeger <aj@suse.de>
4973 * fold-const.c: Properly wrap prototypes.
4975 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
4977 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
4978 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
4980 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
4981 * config/mn10300/mn10300.h: GTY-declare it.
4982 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
4983 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
4984 prototype. Use incoming RTL argument.
4985 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
4986 * config/mn10300/mn10300.md (int_label): Move C statements...
4987 (GOTaddr2picreg): ... here.
4988 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4989 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
4990 * config/mn10300/mn10300.c (mn10300_encode_section_info):
4991 ... here. New function.
4992 (TARGET_ENCODE_SECTION_INFO): Define to it.
4993 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
4994 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
4996 (mn10300_loadPC): Define as insn splittable after reload.
4997 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
4998 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
4999 be defined in .rodata even in PIC, now that the assembler
5001 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
5002 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
5003 symbol take an underscore prefix.
5004 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5005 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
5006 legitimize_pic_address): Declare.
5007 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
5008 the PIC register as fixed.
5009 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
5010 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
5012 (LEGITIMATE_PIC_OPERAND_P): Define.
5013 (PIC_OFFSET_TABLE_REGNUM): Define.
5014 (GOT_SYMBOL_NAME): Define.
5015 (SYMBOLIC_CONST_P): Define.
5016 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
5018 (MN10300_GLOBAL_P): Test it.
5019 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
5020 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
5021 * config/mn10300/mn10300.c (print_operand): Handle unspec.
5022 (expand_prologue): Set PIC register.
5023 (call_address_operand): Don't match SYMBOL_REFs in PIC.
5024 (legitimize_address): Call legitimize_pic_address.
5025 (legitimize_pic_address): New fn.
5026 (legitimate_pic_operand_p): New fn.
5027 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
5028 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
5029 UNSPEC_PLT): New constants.
5030 (pop_pic_reg): New insn.
5031 (movsi): Adjust non-PIC addresses.
5032 (builtin_setjmp_receiver): Restore the PIC register.
5034 (call): Adjust non-PIC addresses.
5035 (int_label, GOTaddr2picreg): New expands.
5036 (am33_loadPC): New insn.
5037 (mn10300_loadPC): New expand.
5038 (call_next_insn): New insn.
5039 (add_GOT_to_pic_reg): New expand.
5040 (symGOT2reg, symGOT2reg_i): New expands.
5041 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
5042 (sym2PIC, sym2PLT): New expands.
5044 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
5046 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
5047 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
5048 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
5049 to flag_unsafe_math_optimizations.
5050 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5051 * config/mn10300/mn10300.c (expand_prologue): Mark
5052 FP-register-saving insns as frame-related.
5053 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
5054 * config/mn10300/mn10300.c
5055 (mn10300_get_live_callee_saved_regs): Don't search past
5056 LAST_EXTENDED_REGNUM.
5057 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
5058 * config/mn10300/mn10300.md: Remove excessive line breaks from
5059 `@' output patterns that were accounted as additional
5061 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
5062 Re-introduce changes accidentally removed in Richard Sandiford's
5064 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
5065 Re-instate am33-2 lost in merge from net GCC.
5066 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
5067 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
5068 floating-point registers.
5069 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
5070 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
5071 pessimizations that had gone in on 2000-05-08.
5072 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
5073 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
5074 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
5075 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
5077 * (movhi): Likewise.
5078 * (movsi): Likewise.
5079 * (movsf): Likewise.
5080 * (movdi): Likewise.
5081 * (movdf): Likewise.
5082 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
5083 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
5084 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
5085 (expand_prologue, expand_epilogue): Save and restore FP regs.
5086 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
5087 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
5088 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
5089 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
5090 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
5092 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
5093 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
5094 Discourage the two-argument, longer opcodes.
5095 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
5097 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
5098 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
5099 * config/mn10300/mn10300.md (cmpsf): New pattern.
5100 (branch): Test mdep.fpCC and output fbCC.
5101 * config/mn10300/mn10300.c (print_operand): Output conditions.
5102 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
5103 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
5104 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
5105 mulsf3, divsf3): Use the `F' constraint for FP values.
5106 * config/mn10300/mn10300.c (const_1f_operand): New function.
5107 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
5108 * config/mn10300/mn10300.md (sqrtsf2): New expand.
5109 (rsqrtsf2): New insn.
5110 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
5111 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
5113 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
5114 * config/mn10300/mn10300.md (abssf2, negdf2): On
5115 TARGET_AM33_2, expand to...
5116 (abssf2_am33_2, negdf2_am33_2): New insns.
5117 (addsf3, subsf3, mulsf3, divsf3): Likewise.
5118 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
5119 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
5120 movdi, movdf): Added FP regs.
5121 * invoke.texi (-mam33-2, -mno-am33-2): Document.
5122 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
5123 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
5125 (REGNO_AM33_2_FP_P): Renamed to...
5126 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
5127 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
5128 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
5129 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
5130 regs from GENERAL_REGS.
5131 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
5132 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
5133 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
5134 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
5135 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
5136 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
5138 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
5139 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
5140 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
5141 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
5142 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
5143 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
5144 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
5145 AM33/2.0 floating-point registers.
5146 (CONDITIONAL_REGISTER_USAGE): Adjust.
5147 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
5148 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
5149 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
5150 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
5151 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
5152 (MULTILIB_DIRNAMES): Likewise.
5153 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
5154 `__AM33_2__' when `-mam33-2' is given.
5155 (TARGET_AM33_2): Define.
5156 (TARGET_SWITCHES): Adjust.
5157 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
5160 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
5162 * doc/install.texi: Add missing @.
5164 2003-07-09 Bob Wilson <bob.wilson@acm.org>
5166 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
5168 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
5171 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
5173 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
5176 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
5177 "x-crtfini.o" with "crtinit.o", "crtfini.o".
5179 * fixinc/inclhack.def (limits_ifndefs): Add select test.
5180 * fixinc/fixincl.x: Rebuild.
5182 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
5183 * fixinc/fixincl.x: Rebuild.
5185 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
5187 * doc/install.texi (Configuration): Document the valgrind option
5188 to --enable-checking.
5190 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
5192 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
5194 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5196 * c-lex.c (cb_ident): Cast cstr.text to const char *.
5198 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
5200 * gcov-io.h: Update documentation.
5201 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
5203 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
5204 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
5205 (struct gcov_var): Change buffer's type. Add endian flag.
5206 (gcov_open): Remove mode in libgcov.
5207 (gcov_magic): Prototype.
5208 * gcov-io.c (from_file): New.
5209 (gcov_open): Clear endian flag.
5211 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
5213 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
5214 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
5215 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
5216 * gcov-iov.c (main): Correct cast.
5217 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
5219 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
5220 (coverage_init): Use GCOV_NOTE_SUFFIX.
5221 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
5222 Rename to gcov_version, and return flag.
5223 (gcov_exit): Use gcov_version.
5224 (__gcov_init): Use gcov_version.
5225 * Makefile.in (coverageexts): Update.
5226 * gcov.c (print_version): Remove endianness conversion.
5227 (create_file_names): Use GCOV_NOTE_SUFFIX.
5228 (read_graph_file): Use gcov_magic.
5229 (read_count_file): Likewise.
5230 * gcov-dump.c (dump_file): Remove endianness conversion, use
5233 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
5235 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
5237 * configure: Regenerated.
5238 * Makefile.in (ALL_CFLAGS): Correct its comment.
5240 2003-07-08 Mark Mitchell <mark@codesourcery.com>
5242 * fold-const.c (make_range): Do not access operand 1 for a
5243 zero-operand operator.
5245 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
5247 * toplev.c (warn_dummy, W_options): Die.
5248 (display_help): Don't print W_options.
5249 * common.opt: Add W_options help from toplev.c.
5251 2003-07-09 Andreas Jaeger <aj@suse.de>
5253 * opts.c (wrap_help): Only pass int arguments as arguments to
5254 printf's '*' modifier. Change argument of function.
5256 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
5258 * doc/invoke.texi: Fix misspelling of "@item".
5260 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
5262 * config/i386/i386.md: Remove an old comment about
5265 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
5267 * cgraph.c (cgraph_node_name): New function.
5268 (dump_cgraph): Use it.
5269 * cgraph.h (cgraph_dump_file): Declare.
5270 (cgraph_node_name): Declare.
5271 * cgraphunit.c: Include timevar.h
5272 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
5273 (cgraph_optimize_function): Use TV_INTEGRATION.
5274 (cgraph_mark_local_functions): reorganize dumps.
5275 (cgraph_mark_functions_to_inline_once): Likewise.
5276 (cgraph_optimize): Likewise; use timevar.
5277 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
5278 * toplev.c (dump_file_index): Add DFI_cgraph.
5279 (dump_file_info): Likewise.
5280 (cgraph_dump_file): New global variable.
5281 (do_compile): Open and close cgraph dump.
5282 * invoke.texi (-d): Document new flag; renumber.
5284 2003-07-08 Roger Sayle <roger@eyesopen.com>
5287 * calls.c (emit_call_1): Don't bother popping the arguments off of
5288 the stack after a noreturn function call; The adjustment is dead.
5289 (expand_call): Likewise.
5291 2003-07-08 Geoffrey Keating <geoffk@apple.com>
5293 * expr.c (MOVE_MAX_PIECES): Move from here...
5294 * defaults.h (MOVE_MAX_PIECES): ... to here.
5296 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
5298 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
5300 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5302 * genattr.c (internal_dfa_insn_code): Don't prototype.
5303 * genattrtab.c (attr_desc): Add `static_p' field.
5304 (expand_units): Make blockage range and ready cost functions
5306 (write_attr_get): Don't add extern prototypes in C file. Mark
5307 static functions as appropriate.
5308 (find_attr, make_internal_attr): Initialize static_p.
5309 * genattrtab.h (ATTR_STATIC): New macro.
5310 * genautomata.c (output_internal_reset_func): Mark output function
5312 (make_internal_dfa_insn_code_attr): Mark output function as static.
5314 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5316 * genattrtab.h: Add new macros for attr `special' flags.
5317 * genattrtab.c (attr_desc): Reorder/resize fields better.
5318 Use attr `special' macros in all calls to make_internal_attr.
5319 * genautomata.c: Likewise.
5321 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
5323 * c-common.c (c_estimate_num_insns_1): New static function.
5324 (c_estimate_num_insns): New global function.
5325 * c-common.h (DECL_NUM_STMTS): Rename to...
5326 (DECL_ESTIMATED_INSNS): ... this.
5327 (c_estimate_num_insns): Declare.
5328 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
5329 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
5330 * c-semantics.c (add_stmt): Do not account statements.
5331 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
5333 * langhooks.h (lang_hooks_for_tree_inlining): Add
5335 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
5337 (max-inline-insns): set to 300.
5338 (min-inline-insns): set to 10.
5339 * tree-inline.c (struct inline_data): Rename inlined_stmts to
5341 (INSNS_PER_STMT): Kill.
5342 (inlinable_function_p): Compute and store body size.
5343 (expand_call_inline): Likewise.
5344 (optimize_inline_calls): Likewise.
5346 2003-07-08 James E Wilson <wilson@tuliptree.org>
5349 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
5350 loop over new variable t2 instead of t.
5352 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
5355 * config/i386/winnt.c: Replace use of error(), warning() with
5356 error_with_decl(), warning_with_decl(), throughout.
5358 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
5360 * opts.c (wrap_help): Use unsigned int, not size_t.
5362 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
5364 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
5365 as .file/.loc directives are incompatible with linker relaxation.
5367 2003-07-08 Zack Weinberg <zack@codesourcery.com>
5369 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
5370 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
5371 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
5372 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
5373 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
5374 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
5375 Escape { and } characters which are not part of range expressions.
5376 * fixinc/fixincl.x: Regenerate.
5377 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
5379 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
5382 * tree-inline.c (find_alloca_call): Use
5383 walk_tree_without_duplicates, instead of walk_tree.
5384 (find_builtin_longjmp_call): Likewise.
5385 * c-objc-common.c (c_cannot_inline_fn): Likewise.
5386 * c-semantics.c (find_reachable_label): Likewise.
5388 2003-07-08 Jakub Jelinek <jakub@redhat.com>
5391 * config/i386/i386.c (ix86_check_movabs): New function.
5392 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
5393 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
5394 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
5396 2003-07-08 Chris Demetriou <cgd@broadcom.com>
5398 * Makefile.in (install-po): Cope with empty CATALOGS.
5400 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
5402 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
5403 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
5404 (SECTION_FUNCTION_TEMPLATE): Delete.
5405 * config/mips/elf.h: As for elf64.h.
5406 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
5407 * config/mips/linux.h: As for elf.h
5408 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
5409 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
5410 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
5411 of in_sdata from current_section_name and current_section_flags.
5412 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
5413 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
5414 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
5415 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
5416 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
5417 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
5418 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
5419 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
5420 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
5421 (override_options): Remove setting of MASK_GPOPT.
5422 (mips_output_external): Use mips_in_small_data_p to check whether a
5423 symbol needs an .extern directive. Don't emit such directives for
5424 TARGET_EXPLICIT_RELOCS.
5425 (mips_declare_object): Update accordingly.
5426 (mips_select_rtx_section): Call named_section rather than
5428 (mips_select_section): Use default_elf_section_section for everything
5429 except .text string constants.
5430 (mips_in_small_data_p): New function.
5431 (mips_encode_section_info): Remove small data handling.
5432 (mips_unique_section): Delete.
5433 (iris6_section_type_flags): New function.
5434 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
5436 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5439 * pa.md: Disparage all mtsar constraints.
5440 (extzv, extv, insv): Don't fail on length of {32|64}.
5442 2003-07-08 Zack Weinberg <zack@codesourcery.com>
5444 * system.h: Poison MAP_CHARACTER.
5445 * config/i370/i370-protos.h (mvs_map_char): Delete.
5446 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
5447 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
5448 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
5450 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
5452 * toplev.c (randomize): Correct call to time().
5454 2003-07-08 Jakub Jelinek <jakub@redhat.com>
5456 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
5457 REG_EQUIV notes as well.
5459 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
5461 * doc/md.texi: Fix the description of addmodecc.
5463 2003-07-07 Zack Weinberg <zack@codesourcery.com>
5465 * Makefile.in (top_builddir): Set to "..", not ".".
5466 (INTLLIBS, INTLDEPS): Delete.
5467 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
5468 (LIBDEPS): Add $(LIBICONV_DEP).
5469 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
5470 (INCLUDES): Replace -I../intl with @INCINTL@.
5471 ($(top_builddir)/intl/libintl.a): Delete rule.
5472 (stage2-start, stage3-start, stage4-start, stageprofile-start,
5473 stagefeedback-start): Use $$ for variable to be evaluated by
5475 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
5476 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
5477 * aclocal.m4: sinclude ../config/progtest.m4. Add
5478 contents of lcmessage.m4 from gettext distro.
5479 * configure.in: Check for wchar.h and setlocale. Set
5480 LIBICONV_DEP to the empty string and substitute it.
5481 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
5482 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
5483 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
5484 in $LIBINTL, to avoid linking it twice.
5485 * configure, config.in: Regenerate.
5487 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
5489 * fixinc/mkfixinc.sh: Remove winnt support.
5490 * fixinc/fixinc.winnt: Delete with extreme prejudice.
5492 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
5494 * Makefile.in: Update.
5495 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
5496 * c.opt: Update documentation.
5497 * common.opt: Add some help text.
5498 * opts.c: Include intl.h.
5499 (wrap_help, print_help): New.
5500 (find_opt, handle_option, common_handle_option): opt_text now
5501 contains the '-'. Use print_help to output help.
5502 * opts.h (struct cl_option): New member "help".
5503 * opts.sh: Update to handle help text output and to prepend
5505 * toplev.c (display_help): Remove some help text.
5507 2003-07-07 David Edelsohn <edelsohn@gnu.org>
5508 Fariborz Jahanian <fjahanian@apple.com>
5510 * configure.in: Test for PowerPC mfcr field support in assembler.
5511 * config.in, configure: Regenderated.
5513 * config/rs6000/power4.md: Add mfcrf reservation.
5514 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
5515 * config/rs6000/rs6000.c (mfcr_operation): Define.
5516 (print_operand): Add 'Q' case for mfcrf.
5517 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
5518 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
5519 (movcc_internal1): Emit optional field operand for mfcr and set
5520 "type" attribute appropriately.
5521 (mfcr SCC): Likewise.
5522 (movesi_from_cr_one): New.
5524 2003-07-07 Roger Sayle <roger@eyesopen.com>
5526 * config/i386/i386.md: Correct check-in of incorrect version.
5528 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5530 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
5531 adjacent stdio calls.
5532 * c-decl.c (c_print_identifier): Likewise.
5533 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
5534 * print-rtl.c (print_rtx): Likewise.
5535 * print-tree.c (print_node_brief, print_node): Likewise.
5536 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
5538 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
5539 * config.in, configure: Regenerated.
5541 2003-07-07 Roger Sayle <roger@eyesopen.com>
5544 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
5545 Changed to define_expand patterns that copy operand[1] to prevent
5546 it from being clobbered before emitting an atan2?f3_1 insn.
5547 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
5548 patterns that actually specify the behaviour of x87's FPATAN.
5550 2003-07-07 Jakub Jelinek <jakub@redhat.com>
5552 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
5553 clearing of SYMBOL_FLAG_LOCAL bit.
5554 If vcall_offset fits into signed 16-bit immediate, use
5555 one instruction for both addition and load.
5557 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
5559 * opts.c (common_handle_option): Correct handling of the
5560 -falign- switches that do and don't take an argument.
5562 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
5564 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
5566 (pushhi1_h8300hs): Likewise.
5568 2003-07-07 Andreas Jaeger <aj@suse.de>
5570 * genextract.c: Convert remaining prototypes to ISO C90.
5572 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
5573 * fold-const.c (fold_single_bit_test): Likewise.
5574 * diagnostic.c (default_diagnostic_finalizer): Likewise.
5575 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
5577 * gengtype.c (write_array): Generate ISO C90 prototypes.
5579 * genflags.c (gen_proto): Generate ISO C90 prototypes.
5581 2003-07-07 Roger Sayle <roger@eyesopen.com>
5583 PR optimization/11059
5584 * expr.c (can_store_by_pieces): Return true if length is zero.
5585 (store_by_pieces): If length is zero and endp is two, abort,
5586 othwerise, if length is zero and endp is not two, return "to".
5587 (clear_by_pieces): Do nothing if length is zero.
5588 (clear_storage): Do nothing if length is zero.
5589 (store_constructor): Simplify code when size is zero, or the
5590 target has already been cleared. This avoids emitting a
5591 blockage instruction when initializing empty structures.
5593 2003-07-07 Andreas Jaeger <aj@suse.de>
5595 * mips-tfile.c: Convert prototypes to ISO C90.
5596 * mips-tdump.c: Convert prototypes to ISO C90.
5598 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
5600 * rtl.h (emit_line_note): Take a location_t.
5601 (emit_line_note_force): Remove.
5602 (set_file_and_line_for_statement): Take a location_t.
5603 * tree.g (emit_line_note): Take a location_t.
5604 * emit-rtl.c (emit_line_note): Take a location_t.
5605 (emit_line_note_force): Remove.
5606 * function.c (init_function_start): Adjust emit_line_note call.
5607 (expand_function_end): Use force_next_line_note, not
5608 emit_line_note_force.
5609 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
5610 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
5611 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
5612 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
5613 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
5614 genrtl_continue_stmt, genrtl_switch_stmt,
5615 genrtl_asm_stmt): Likewise.
5616 * expr.c (expand_expr): Likewise.
5617 * integrate.c (expand_inline_function): Likewise.
5618 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
5619 (expand_decl_init): Adjust emit_line_note call.
5621 2003-07-07 Dale Johannesen <dalej@apple.com>
5623 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
5625 2003-07-07 Andreas Jaeger <aj@suse.de>
5627 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
5628 * config/i386/i386.c: Likewise.
5630 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
5632 * config/h8300/h8300.md: Use gen_int_mode instead of
5633 GEN_INT (trunc_int_for_mode (...)).
5635 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
5637 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
5638 2 bytes and then subtract 2 from the stack pointer.
5639 (pushhi1_h8300hs): Likewise.
5641 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
5643 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
5645 * configure: Regenerated.
5646 * Makefile.in: Remove extraneous comment.
5647 * toplev.c (randomize): Protect against potential multiple calls.
5648 * doc/invoke.texi (-frandom-seed): Document use for in coverage
5651 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5652 Eric Botcazou <ebotcazou@libertysurf.fr>
5654 PR optimization/11198
5655 * alias.c (objects_must_conflict_p): Return 1 if the types have
5656 the same alias set, not if the alias sets only conflict.
5658 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
5660 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
5661 (convert_cset): Change inbuf to type ICONV_CONST char.
5662 * Makefile.in (LIBS): Add LIBICONV.
5664 * doc/invoke.texi (-falign-functions): Document that
5665 when n is zero then a machine-dependent default is used.
5666 (-falign-labels): Document that when n is zero then a
5667 machine-dependent default is used and that -falign-labels =1
5668 is equivalent to -fno-align-labels.
5669 (-falign-loops): Likewise.
5670 (-falign-jumps): Likewise.
5672 2003-07-06 Art Haas <ahaas@airmail.net>
5674 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
5677 2003-07-06 James E Wilson <wilson@tuliptree.org>
5679 PR optimization/9812
5680 * rtl.h (mem_for_const_double): Delete prototype.
5681 * varasm.c (mem_for_const_double): Delete function.
5682 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
5683 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
5684 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
5685 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
5686 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
5687 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
5688 comment about confused support for XFmode constants.
5690 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
5692 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
5694 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
5696 * config/h8300/h8300.c: Fix comment typos.
5697 * config/h8300/h8300.md: Likewise.
5698 * config/i386/athlon.md: Likewise.
5699 * config/i386/i386.c: Likewise.
5700 * config/i386/pentium.md: Likewise.
5701 * config/ia64/ia64.c: Likewise.
5702 * config/ia64/itanium1.md: Likewise.
5703 * config/ia64/itanium2.md: Likewise.
5704 * config/m32r/m32r.md: Likewise.
5705 * config/m68hc11/m68hc11.c: Likewise.
5706 * config/mcore/mcore.c: Likewise.
5707 * config/mips/sr71k.md: Likewise.
5708 * config/mips/t-iris5-as: Likewise.
5709 * config/mmix/mmix.h: Likewise.
5710 * config/ns32k/ns32k.h: Likewise.
5711 * config/ns32k/NOTES: Fix a typo.
5713 2003-07-06 Andreas Jaeger <aj@suse.de>
5715 * stmt.c: Convert remaining prototypes to ISO C90.
5716 * cfglayout.c: Likewise.
5717 * dbxout.c: Likewise.
5719 * genemit.c: Likewise.
5721 * basic-block.h: Convert prototypes to ISO C90.
5722 * c-parse.in: Likewise.
5723 * c-pragma.h: Likewise.
5724 * c-typeck.c: Likewise.
5725 * cfghooks.h: Likewise.
5726 * cfgloopanal.c: Likewise.
5727 * dbxout.h: Likewise.
5728 * debug.h: Likewise.
5729 * dwarf2asm.h: Likewise.
5731 * gengtype-lex.l: Likewise.
5732 * sched-int.h: Likewise.
5733 * timevar.c: Likewise.
5735 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
5737 * c-common.h (c_comon_handle_filename,
5738 c_common_missing_arguement): New.
5739 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
5740 LANG_HOOKS_MISSING_ARGUMENT): New.
5741 * c-opts.c (missing_arg): Rename c_common_missing_argument,
5742 update to be an appropriate langhook.
5743 (c_common_handle_option): Don't handle filenames.
5744 (c_common_handle_filename): New.
5745 * hooks.c (hook_void_constcharptr,
5746 hook_bool_constcharptr_size_t_false): New.
5747 * hooks.h (hook_void_constcharptr,
5748 hook_bool_constcharptr_size_t_false): New.
5749 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
5750 LANG_HOOKS_MISSING_ARGUMENT): New.
5751 (LANG_HOOKS_INITIALIZER): Update.
5752 * langhooks.h (struct lang_hooks): Add handle_filename and
5754 * opts.c (handle_option): Don't handle filenames here, but ...
5755 (handle_options): ... here.
5756 (common_handle_option): Don't handle missing arguments here.
5757 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
5758 LANG_HOOKS_MISSING_ARGUMENT): New.
5760 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
5762 * Makfile.in: Remove traces of mbchar.
5763 * c-parse.in (MULTIBYTE_CHARS): Remove.
5764 * config.in (MULTIBYTE_CHARS): Remove.
5765 * configure: Remove --enable-mbchar.
5766 * configure.in: Remove --enable-mbchar.
5767 * mbchar.c, mbchar.h: Remove.
5768 * system.h: Poison MULTIBYTE_CHARS.
5769 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
5770 * config/linux.h (MULTIBYTE_CHARS): Remove.
5771 * config/svr4.h (MULTIBYTE_CHARS): Remove.
5772 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
5774 2003-07-06 Andreas Jaeger <aj@suse.de>
5776 * varray.c (varray_check_failed): Fix typo.
5778 * unroll.c: Convert prototypes to ISO C90.
5779 * varasm.c: Likewise.
5780 * varray.c: Likewise.
5781 * varray.h: Likewise.
5782 * vmsdbgout.c: Likewise.
5783 * xcoffout.c: Likewise.
5784 * xcoffout.h: Likewise.
5786 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
5788 * gcov-io.h: Add a local time stamp.
5789 (struct gcov_info): Add stamp field.
5790 (gcov_truncate): New.
5791 * coverage.c (read_counts_file): Skip the stamp.
5792 (coverage_begin_output): Write the stamp.
5793 (build_gcov_info): Declare and init the stamp.
5794 (coverage_finish): Only unlink data file, if stamp is zero.
5795 * gcov-dump.c (dump_file): Dump the stamp.
5796 * gcov.c (bbg_stamp): New.
5797 (release_structures): Clear bbg_stamp.
5798 (read_graph_file): Read stamp.
5799 (read_count_file): Check stamp.
5800 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
5802 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
5804 * tree.h (default_flag_random_seed): Remove.
5805 * toplev.h (local_tick): Declare.
5806 * tree.c (flag_random_seed, default_flag_random_seed): Move to
5808 (append_random_chars): Don't call default_flag_random_seed.
5809 * toplev.c (flag_random_seed): Define here. Set local_tick.
5810 (local_tick): Define.
5811 (randomize): New, moved from tree.c.
5812 (print_switch_values): Adjust.
5813 (toplev_main): Call randomize.
5815 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
5817 * tree.h (crc32_string): Declare.
5818 * tree.c (append_random_chars): Remove.
5819 (crc32_string): New.
5820 (get_file_function_name_long): Use crc32_string here.
5822 2003-07-06 Andreas Jaeger <aj@suse.de>
5824 * gcc.c: Convert prototypes to ISO C90.
5826 * gcov-dump.c: Likewise.
5827 * gcov-iov.c: Likewise.
5829 * genattrtab.h: Likewise.
5831 * global.c: Likewise.
5832 * graph.c: Likewise.
5833 * graph.h: Likewise.
5834 * hosthooks.h: Likewise.
5835 * hooks.h: Likewise.
5836 * hooks.c: Likewise.
5837 * hashtable.h: Likewise.
5838 * hashtable.c: Likewise.
5839 * haifa-sched.c: Likewise.
5840 * integrate.h: Likewise.
5841 * integrate.c: Likewise.
5842 * input.h: Likewise.
5843 * ifcvt.c: Likewise.
5845 * langhooks-def.h: Likewise. Add extern to prototypes.
5846 * langhooks.c: Likewise.
5847 * langhooks.h: Likewise.
5849 * local-alloc.c: Likewise.
5850 * loop-init.c: Likewise.
5851 * loop-unroll.c: Likewise.
5852 * loop-unswitch.c: Likewise.
5854 * loop.h: Likewise. Add extern to prototypes.
5855 * machmode.h: Likewise.
5857 * mbchar.c: Likewise.
5858 * mbchar.h: Likewise.
5859 * mkdeps.c: Likewise.
5860 * mkdeps.h: Likewise.
5861 * optabs.c: Likewise.
5862 * optabs.h: Likewise.
5863 * output.h: Likewise.
5864 * gccspec.c: Likwise.
5865 * postreload.c: Likewise.
5866 * prefix.c: Likewise.
5867 * prefix.h: Likewise.
5868 * print-rtl.c: Likewise.
5869 * print-tree.c: Likewise.
5870 * profile.c: Likewise.
5871 * read-rtl.c: Likewise.
5874 * recog.c: Likewise.
5875 * recog.h: Likewise.
5876 * reg-stack.c: Likewise.
5877 * regclass.c: Likewise.
5878 * regmove.c: Likewise.
5879 * regrename.c: Likewise.
5881 * reload.c: Likewise.
5882 * reload.h: Likewise.
5883 * reload1.c: Likewise.
5884 * reorg.c: Likewise.
5885 * resource.c: Likewise.
5886 * resource.h: Likewise.
5887 * rtl-error.c: Likewise.
5890 * rtlanal.c: Likewise.
5891 * sbitmap.c: Likewise.
5892 * sbitmap.h: Likewise.
5893 * scan-decls.c: Likewise.
5895 * sched-deps.c: Likewise.
5896 * sched-ebb.c: Likewise.
5897 * sched-int.h: Likewise.
5898 * sched-rgn.c: Likewise.
5899 * sched-vis.c: Likewise.
5900 * sibcall.c: Likewise.
5901 * simplify-rtx.c: Likewise.
5902 * sreal.c: Likewise.
5903 * sreal.h: Likewise.
5904 * ssa-ccp.c: Likewise.
5905 * ssa-dce.c: Likewise.
5908 * stack.h: Likewise.
5910 * stor-layout.c: Likewise.
5911 * stringpool.c: Likewise.
5912 * target.h: Likewise.
5913 * timevar.c: Likewise.
5914 * timevar.h: Likewise.
5915 * tlink.c: Likewise.
5916 * tracer.c: Likewise.
5917 * tree-inline.c: Likewise.
5918 * tree-inline.h: Likewise.
5922 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5924 * combine.c (nonzero_bits1): Fix a warning.
5926 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5928 * config/h8300/h8300.c (compute_mov_length): Correct the
5929 length of loading CONST0_RTX (SFmode).
5931 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
5933 * toplev.c (output_clean_symbol_name): Remove.
5934 * toplev.h (output_clean_symbol_name): Remove.
5935 * config/alpha/alpha.c (unicosmk_output_module_name): Use
5936 lbasename & clean_symbol_name.
5938 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5940 * ggc.h: Follow spelling conventions.
5941 * config/i386/i386.c: Likewise.
5942 * config/i386/winnt.c: Likewise.
5943 * config/rs6000/rs6000.c: Likewise.
5945 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
5947 * bt-load.c: Fix comment typos.
5948 * c-incpath.c: Likewise.
5950 * cfgcleanup.c: Likewise.
5951 * cfgloop.h: Likewise.
5952 * cfgloopmanip.c: Likewise.
5953 * cfgrtl.c: Likewise.
5954 * diagnostic.h: Likewise.
5955 * dwarfout.c: Likewise.
5956 * emit-rtl.c: Likewise.
5957 * et-forest.c: Likewise.
5958 * et-forest.h: Likewise.
5961 * genattr.c: Likewise.
5963 * langhooks.h: Likewise.
5964 * local-alloc.c: Likewise.
5965 * loop-unroll.c: Likewise.
5966 * loop-unswitch.c: Likewise.
5967 * ra-build.c: Likewise.
5968 * regclass.c: Likewise.
5969 * regmove.c: Likewise.
5970 * rtl.def: Likewise.
5971 * rtlanal.c: Likewise.
5972 * sched-ebb.c: Likewise.
5973 * sched-rgn.c: Likewise.
5974 * simplify-rtx.c: Likewise.
5976 * tracer.c: Likewise.
5979 2003-07-05 Zack Weinberg <zack@codesourcery.com>
5981 * cppcharset.c: Use the correct return type for the fallback iconv
5984 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5986 Blame to Jan Hubicka <jh@suse.cz>
5987 * cfglayout.c (record_effective_endpoints): Split insns before
5988 first basic block correctly.
5990 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5992 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
5993 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
5994 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
5996 2003-07-05 Andreas Jaeger <aj@suse.de>
5998 * genattrtab.c (write_attr_get): Revert part of last patch to
5999 always write out a prototype.
6001 * genemit.c (gen_split): Readd lost unused attributes in last
6004 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6006 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
6007 different from header.
6009 2003-07-05 Andreas Schwab <schwab@suse.de>
6011 * config/m68k/m68k.c: Remove code protected by CRDS.
6012 * config/m68k/m68k.md: Likewise.
6014 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
6017 * c-opts.c (permit_fortran_options): New.
6018 (c_common_init_options): Accept fortran front end options if
6019 it looks like we might be preprocessing Fortran.
6020 (c_common_handle_option): Don't reject switch if permit_fotran_options.
6022 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6024 * genattr.c (internal_dfa_insn_code): Output prototype.
6025 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
6026 * genautomata.c: Likewise.
6027 * genconditions.c: Likewise.
6028 * genemit.c: Likewise.
6029 * genextract.c: Likewise.
6030 * gengenrtl.c: Likewise.
6031 * gengtype.c: Likewise.
6032 * genopinit.c: Likewise.
6033 * genoutput.c: Likewise.
6034 * genpeep.c: Likewise.
6035 * genrecog.c: Likewise.
6037 2003-07-04 Zack Weinberg <zack@codesourcery.com>
6039 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
6040 (struct cpp_options): Add narrow_charset, wide_charset,
6041 bytes_big_endian fields. Remove EBCDIC field.
6042 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
6044 * cpphash.h: Include <iconv.h> if we have it, otherwise
6045 provide a dummy definition of iconv_t.
6046 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
6047 (_cpp_valid_ucn): Update prototype.
6048 (_cpp_destroy_iconv): New prototype.
6050 * doc/cpp.texi: Document character set handling.
6051 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
6052 * doc/extend.texi: Delete entire section on multiline strings.
6053 Rewrite section on __FUNCTION__ etc now that these are
6056 * cppucnid.tab, cppucnid.pl: New files.
6057 * cppucnid.h: New generated file.
6058 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
6059 (iconv_open, iconv, iconv_close): Provide dummy definitions
6061 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
6062 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
6063 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
6064 cpp_interpret_string, narrow_str_to_charconst,
6065 wide_str_to_charconst): New.
6066 (ucn_valid_in_identifier): Use a binary search through the
6067 ucnranges table defined in cppucnid.h, not a long chain of if
6069 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
6070 character names are only valid in C++ and C99" to a warning.
6071 Issue the "meaning of \[uU] is different in traditional C"
6072 warning here. Take care not to let iconv see an invalid UCS
6073 value if we get a malformed UCN. Issue an error if we don't
6075 (cpp_interpret_charconst): Moved here from cpplex.c. Use
6076 cpp_interpret_string to do the heavy lifting.
6078 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
6079 narrow_charset, wide_charset fields of options structure.
6080 (cpp_destroy): Call _cpp_destroy_iconv.
6081 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
6082 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
6083 (cpp_interpret_charconst): Moved to cppcharset.c.
6084 * cpplib.c (dequote_string): Delete.
6085 (interpret_string_notranslate): New.
6086 (do_line, do_linemarker): Use interpret_string_notranslate.
6088 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
6090 * c-common.c (fname_string, combine_strings): Delete.
6091 * c-common.h (fname_string, combine_strings): Delete prototypes.
6092 * c-lex.c (ignore_escape_flag): Delete.
6093 (cb_ident): Use cpp_interpret_string, not lex_string.
6094 (get_nonpadding_token): New function.
6095 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
6096 Adjust calls to lex_string. Don't write *value twice.
6097 (lex_string): Now handles string constant concatenation.
6098 Most of the work handed off to cpp_interpret_string.
6099 Call fix_string_type here.
6100 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
6101 FUNC_NAME, throughout.
6102 (OBJC_STRING): New token type.
6103 (primary:STRING): No need to call fix_string_type here.
6104 (primary:objc_string): Make that OBJC_STRING.
6105 (objc_string nonterminal): Delete.
6106 (yylexname): Delete code to handle fake string constants.
6107 (yylexstring): Delete entirely.
6108 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
6109 to handle CPP_ATSIGN.
6111 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
6112 * c-opts.c (missing_arg, c_common_handle_option): Handle
6113 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
6114 (c_common_init): Set cpp_opts->bytes_big_endian, not
6115 cpp_opts->EBCDIC. Call cpp_init_iconv.
6116 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
6117 (TARGET_EBCDIC): Delete default definition.
6119 * objc/objc-act.c (build_objc_string_object): No need to
6120 handle string constant concatenation.
6122 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
6124 * doc/install.texi: Fix typos.
6125 * doc/invoke.texi: Likewise.
6126 * doc/tm.texi: Likewise.
6128 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
6130 * config/pa/fptr.c: Fix comment typos.
6131 * config/pa/pa-64.h: Likewise.
6132 * config/pa/pa.c: Likewise.
6133 * config/pa/pa.h: Likewise.
6134 * config/rs6000/603.md: Likewise.
6135 * config/rs6000/7xx.md: Likewise.
6136 * config/rs6000/darwin.h: Likewise.
6137 * config/rs6000/freebsd.h: Likewise.
6138 * config/rs6000/rs6000.c: Likewise.
6139 * config/rs6000/rs6000.md: Likewise.
6140 * config/rs6000/spe.h: Likewise.
6142 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
6144 * config/s390/2064.md: Change GNU CC to GCC.
6145 * config/s390/2084.md: Likewise.
6146 * config/s390/fixdfdi.h: Likewise.
6147 * config/s390/linux.h: Likewise.
6148 * config/s390/s390-modes.def: Likewise.
6149 * config/s390/s390-protos.h: Likewise.
6150 * config/s390/s390.c: Likewise.
6151 * config/s390/s390.h: Likewise.
6152 * config/s390/s390.md: Likewise.
6153 * config/s390/s390x.h: Likewise.
6155 2003-07-04 Jeff Law <law@redhat.com>
6158 * expr.c (do_store_flag): Pass in the correct result type
6159 when calling fold_single_bit_test.
6160 * fold-const.c (fold_single_bit_test): Use result_type for the
6161 result when folding a sign bit test.
6163 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
6165 * opts.c (common_handle_options): Negate sense of -falign- switches.
6167 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
6169 * Makefile.in: Replace PWD with PWD_COMMAND.
6171 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6173 * cfgloopanal.c (count_strange_loop_iterations): New static function.
6174 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
6175 Handle strange loops.
6177 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
6179 * install.texi: Even the g77 manpage is derived from
6180 the full g77 manual.
6182 2003-07-04 Zack Weinberg <zack@codesourcery.com>
6184 * ABOUT-NLS: Delete.
6185 * intl: Delete entire directory.
6186 * aclocal.m4: Include ../config/gettext.m4. Delete
6187 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
6188 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
6189 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
6190 Remove intl/Makefile from all_outputs.
6191 * configure, config.in: Regenerate.
6192 * Makefile.in: Expunge all references to intl subdirectory.
6193 Add -I../intl to INCLUDES.
6194 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
6196 2003-07-04 Roger Sayle <roger@eyesopen.com>
6198 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
6199 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
6201 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
6203 PR c++/5287, PR c++/7910, PR c++/11021
6204 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
6205 dllimport attribute if function is defined at declaration, but
6206 report error instead. Likewise for dllimport'd variable
6207 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
6208 declared within functions, Report error if dllimport or dllexport
6209 symbol is not global.
6210 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
6211 if defined after declaration or if inlined. Don't allow definition
6212 of static data members of C++ classes. Don't dllimport virtual
6214 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
6215 (i386_pe_mark_dllimport): Remove unnecessary checks.
6216 (i386_pe_encode_section_info): Warn if the dllimport attribute
6217 and symbol prefix have been instantiated and then overridden.
6219 * doc/extend.texi: Document dllimport and dllexport attributes.
6221 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
6223 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
6225 * config/kaos.h (CPP_PREDEFINES): Delete.
6226 (TARGET_OS_CPP_BUILTINS): New.
6228 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6230 * c-aux-info.c: Include toplev.h after c-tree.h.
6231 * c-common.c: Likewise.
6232 (GCC_DIAG_STYLE): Undef.
6233 * c-semantics.c (GCC_DIAG_STYLE): Define.
6234 * c-tree.h (GCC_DIAG_STYLE): Likewise.
6235 * diagnostic.h (inform): Move prototype to toplev.h.
6236 * jump.c: Include diagnostic.h before toplev.h.
6237 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
6238 (warning, error, fatal_error, pedwarn, sorry, inform,
6239 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
6241 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6243 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
6244 at all if edge is not specified.
6245 (can_copy_bbs_p, copy_bbs): New.
6246 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
6247 * cfgloop.c (get_loop_body): Comment more precisely.
6248 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
6249 (scale_bbs_frequencies): Fix comment typo.
6250 (can_duplicate_loop_p): Use can_copy_bbs_p.
6251 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
6253 2003-07-03 Devang Patel <dpatel@apple.com>
6255 * c-opts.c (c_common_parse_file): Remove extra
6256 debug_hooks->start_source_file call.
6258 2003-07-03 Roger Sayle <roger@eyesopen.com>
6260 * real.c (real_trunc, real_floor, real_ceil): New functions
6261 to implement trunc, floor and ceil respectively.
6262 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
6263 * builtins.c (integer_valued_real_p): New function to test if
6264 a floating point expression has an integer valued result.
6265 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
6266 foo(x) where foo is an integer rounding function. Similarly,
6267 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
6268 (double)(int)x when both foo and bar are integer rounding
6269 functions and we don't need to honor errno.
6270 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
6271 New functions to fold trunc, floor and ceil.
6272 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
6273 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
6274 to fold BUILT_IN_CEIL*.
6275 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
6276 the remaining integer rounding functions.
6278 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6280 * config/sparc/sparc.c (function_arg_partial_nregs): Use
6281 SPARC_INT_ARG_MAX to determine where to split unnamed
6282 complex FP arguments.
6284 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
6286 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
6287 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
6288 (merge_blocks_move_predecessor_nojumps,
6289 merge_blocks_move_successor_nojumps): Use merge_blocks.
6290 (try_optimize_cfg): Use merge_blocks_move.
6291 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
6292 (merge_blocks_nomove): Rename to rtl_merge_blocks.
6293 (cfg_layout_create_basic_block): New.
6294 (rtl_can_merge_blocks): New.
6295 (cfg_layout_split_block): Do not alloc aux by hand.
6296 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
6298 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
6299 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
6300 * cfgloopmanip.c (loop_split_edge_with): Likewise.
6301 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
6303 * basic-block.h (basic_block_def): Add field 'rbi'.
6304 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
6305 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
6306 * cfg.c (entry_exit_blocks): Add new field.
6307 * cfglayout.c: Include alloc-pool.h;
6308 (cfg_layout_pool): New.
6309 (record_effective_endpoints, fixup_reorder_chain,
6310 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
6312 (cfg_layout_initialize_rbi): New function.
6313 (cfg_layout_initialize): Use it.
6314 (cfg_layout_finalize): Clear rbi fields.
6315 * cfglayout.h (RBI): Kill.
6316 (cfg_layout_initialize_rbi): Declare.
6317 * cfgloopmanip.c (copy_bbs): Use rbi.
6318 (record_exit_edges): Likewise.
6319 (duplicate_loop_to_header_edge): Likewise.
6320 * cfgrtl.c (cfg_layout_create_basic_block): Use
6321 cfg_layout_initialize_rbi.
6322 (cfg_layout_split_block): Use rbi.
6323 (cfg_layout_delete_block): Likewise.
6324 * loop-init.c (loop_optimizer_finalize): Likewise.
6325 * loop-unswitch.c (unswitch_loop): Likewise.
6326 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
6328 * cfgrtl.c: Update comments.
6329 (try_redirect_by_replacing_jump): New argument.
6330 (redirect_branch_edge): Break out from ...
6331 (rtl_redirect_edge_and_branch): ... this one.
6332 (update_cfg_after_block_merging): Break out from ...
6333 (rtl_merge_blocks): ... this one.
6334 (cfg_layout_split_edge): New.
6335 (cfg_layout_merge_blocks): New.
6336 (cfg_layout_can_merge_blocks_p): New.
6337 (cfg_layout_redirect_edge_and_branch): Reorganize.
6338 (cfg_layout_rtl_cfg_hooks): Fill in.
6339 (cfg_layout_delete_block): Kill barriers.
6340 * cfganal.c (can_fallthru): Deal with exit blocks
6341 * cfglayout.c (cfg_layout_function_header): New function
6342 (record_effective_endpoints): Record function header.
6343 (fixup_reorder_chain): Fixup dead jumptables; place header
6345 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
6346 * bb-reorder.c (cfg_layout_initialize): Update call.
6347 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
6348 edges in cfglayout mode.
6349 * cfglayout.c (cleanup_unconditional_jumps): Kill.
6350 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
6351 * cfglayout.h (cfg_layout_initialize): Update prototype.
6352 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
6353 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
6354 * flow.c (propagate_block): Do not crash when basic block ends
6355 by first insn in the chain.
6356 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
6358 * tracer.c (tracer): Update call of cfg_layout_initialize.
6360 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6362 * Makefile.in: Use dependency variables in lieu of explicit
6365 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
6367 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
6368 * tree.h: ...to here.
6370 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
6372 * config/s390/2064.md: Fix comment typos.
6373 * config/s390/2084.md: Likewise.
6374 * config/s390/s390.c: Likewise.
6375 * config/s390/s390.md: Likewise.
6376 * config/sh/sh.c: Likewise.
6377 * config/sh/sh.h: Likewise.
6378 * config/sh/sh.md: Likewise.
6379 * config/sparc/sparc.c: Likewise.
6380 * config/sparc/sparc.h: Likewise.
6381 * config/sparc/sparc.md: Likewise.
6382 * config/stormy16/stormy16.c: Likewise.
6383 * config/stormy16/stormy16.h: Likewise.
6384 * config/stormy16/stormy-abi: Fix a typo.
6386 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
6388 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
6390 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6392 * config/mips/mips.h (save_argv): Delete.
6394 2003-07-03 Roger Sayle <roger@eyesopen.com>
6397 * fold-const.c (extract_muldiv_1): There's nothing that can be done
6398 if the expression is a SAVE_EXPR.
6400 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
6402 * config/m32r/m32r.c: Fix comment typos.
6403 * config/m68hc11/m68hc11.c: Likewise.
6404 * config/m68hc11/m68hc11.h: Likewise.
6405 * config/m68k/m68k.c: Likewise.
6406 * config/mcore/mcore.c: Likewise.
6407 * config/mcore/mcore.h: Likewise.
6408 * config/mcore/mcore.md: Likewise.
6409 * config/mips/mips.c: Likewise.
6410 * config/mips/mips.h: Likewise.
6411 * config/mips/mips.md: Likewise.
6412 * config/mips/netbsd.h: Likewise.
6413 * config/mn10300/mn10300.c: Likewise.
6415 2003-07-03 Andreas Schwab <schwab@suse.de>
6417 * dbxout.c (pending_bincls): Move decl down inside
6418 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
6420 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
6422 * rtl.h (NOTE_DATA): Refer to whole union.
6423 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
6425 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6427 PR optimization/11381
6428 * simplify-rtx.c (simplify_relational_operation): Check that
6429 two equal operands have no side-effects before simplifying
6432 2003-07-02 Jeff Law <law@redhat.com>
6434 * expr.c (do_store_flag): Remove special case folding for
6435 single bit tests. Instead call back into the commonized folder
6437 * fold-const.c (fold_single_bit_test): New function, mostly
6438 extracted from do_store_flag, with an additional case extracted
6440 (fold): Call fold_single_bit_test appropriately.
6441 * tree.h (fold_single_bit_test): Prototype.
6443 2003-07-02 Zack Weinberg <zack@codesourcery.com>
6445 * system.h: Include filenames.h.
6446 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
6447 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
6448 define based on HAVE_DOS_BASED_FILE_SYSTEM.
6449 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
6450 * config/i386/xm-mingw32.h: Don't define
6451 HAVE_DOS_BASED_FILE_SYSTEM,
6452 DIR_SEPARATOR, or DIR_SEPARATOR_2.
6453 * doc/hostconfig.texi: Update to match.
6455 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
6456 config/i386/cygwin.h:
6457 Use IS_ABSOLUTE_PATH throughout.
6458 * gcc.c (DIR_UP): Delete, unused.
6459 * protoize.c (IS_SAME_PATH): Define in terms of
6461 (is_abspath): Delete.
6463 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
6465 * config/i386/emmintrin.h: Fix comment typos.
6466 * config/i386/i386.c: Likewise.
6467 * config/i386/i386.h: Likewise.
6468 * config/i386/sco5.h: Likewise.
6469 * config/ia64/ia64.c: Likewise.
6470 * config/ia64/itanium2.md: Likewise.
6472 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
6474 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
6476 (emit_bincl_stab): Same.
6477 (emit_pending_bincls): Same.
6479 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
6481 * config/h8300/h8300.c (compute_mov_length): Fix the length of
6482 loading CONST0_RTX (SFmode).
6483 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
6484 'G' to CONST0_RTX (SFmode).
6485 * config/h8300/h8300.md (movsf_h8300): Change the first
6487 (movsf_h8300h): Likewise.
6489 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
6491 * c-common.h (c_common_init_options): New prototype.
6492 * c-opts.c (deferred_size): Remove.
6493 (defer_opt): Array is now pre-allocated.
6494 (c_common_init_options): Pre-allocate deferred_opts. Make
6495 lang_flags unsigned.
6496 (push_command_line_options): Free deferred_opts.
6497 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
6498 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
6499 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
6500 * langhooks.h (struct lang_hooks): New prototype for init_options.
6501 * main.c (main): Cast argv.
6502 * opts.c (handle_option, handle_options): Update prototypes.
6503 (decode_options): save_argc, save_argv are not global. Constify.
6504 * opts.h (decode_options): New prototype.
6505 * toplev.c (general_init): New protoype.
6506 (save_argv): Make static.
6507 (save_argc): Remove.
6508 (print_switch_values, general_init): Constify.
6509 (toplev_main): Save argv.
6510 * toplev.h (toplev_main): Update prototype.
6511 (save_argc, save_argv): Remove.
6513 2003-07-02 David Edelsohn <edelsohn@gnu.org>
6515 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
6516 (emit_bincl_stab): Same.
6517 (emit_pending_bincls): Same.
6519 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
6522 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
6524 2003-07-02 Andreas Schwab <schwab@suse.de>
6526 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
6528 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
6530 PR optimization/11210
6531 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
6532 about the behaviour with regard to bitfields.
6533 * fold-const (decode_field_reference): Record outermost type in
6534 case the expression is a NOP. Strip all NOPs. Set the signedness
6535 to that of the outermost type (if any) when the bitsize is equal
6536 to the size of the type.
6538 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
6540 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
6541 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
6542 (adddi3_internal_3, addsi3_internal_2): Likewise.
6544 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
6546 * config/mips/mips.c (machine_function): Add new fields:
6547 ignore_hazard_length_p and all_noreorder_p.
6548 (mips_flag_delayed_branch): New variable.
6549 (override_options): Treat '/' as an operand punctuation character.
6550 Set up mips_flag_delayed_branch.
6551 (print_operand): Handle '/'.
6552 (mips_output_function_prologue): Put the whole function in
6553 .set noreorder and .set nomacro if all_noreorder_p is true.
6554 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
6555 (mips16_optimize_gp): Remove "first insn" parameter.
6556 (mips16_lay_out_constants): New function, split out from mips_reorg.
6557 (mips_avoid_hazard, mips_avoid_hazards): New functions.
6558 (mips_reorg): For mips16 code, call mips16_lay_out_constant
6559 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
6560 do delayed-branch scheduling followed by hazard detection.
6561 (mips_adjust_insn_length): Only account for hazards if
6562 !ignore_hazard_length_p.
6563 (mips_output_load_label): Add a nop to the o32 sequence if
6564 the target suffers from load delays.
6565 (mips_output_conditional_branch): Add %/ to the end of branches.
6566 (mips_output_division): Fill the branch delay slot with %#.
6567 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
6568 instructions. End all other %* branches with %/.
6569 (ffssi2, ffsdi2): Fix lengths.
6570 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
6571 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
6572 (fix_truncsfsi2_macro): Likewise.
6573 (mov_lwl): Set hazard to "none".
6574 (ashldi3_internal): Fill the branch delay slot with %#.
6575 (ashrdi3_internal, lshrdi3_internal): Likewise.
6576 (exception_receiver): Explicitly set $28.
6577 (hazard_nop): New pattern.
6579 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
6581 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
6582 before calling tree_inlinable_function_p.
6584 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6586 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
6587 <internal/stdio_core.h> too.
6588 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
6589 <internal/wchar_core.h> too.
6590 Substitute va_list uses in inline definition.
6591 * fixinc/fixincl.x: Regenerate.
6593 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6595 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
6596 Undef before redefinition.
6597 (LABEL_AFTER_LOC): Likewise.
6598 (DEFAULT_SIGNED_CHAR): Likewise.
6599 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
6602 * config/mips/iris3.h: Remove, unused.
6603 * config/mips/iris4.h: Likewise.
6605 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
6607 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
6608 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
6611 * config/mips/iris5.h: Move explicit includes ...
6612 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
6614 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
6615 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
6618 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
6619 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
6622 * config/mips/iris6.h: Fix IRIX spelling.
6623 (MULTILIB_DEFAULTS): Undef before redefinition.
6625 * config/mips/iris6.h: Move explicit includes ...
6626 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
6628 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
6630 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
6631 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
6632 Use next_needed field instead of aux to maintain the queue.
6633 * cgraph.h (cgraph_node): Add next_needed.
6634 (cgraph_varpool_node): Add next_needed; remove aux.
6635 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
6637 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
6639 * cgraphunit.c (cgraph_finalize_function): Set finalized.
6640 (cgraph_finalize_function): Do not examine inlinablility.
6641 (cgraph_finalize_compilation_unit): Do it here.
6642 * cgraph.h (cgraph_local_info): Add finalized field.
6644 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6646 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
6647 (gt_pch_restore): Likewise.
6649 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
6651 * config/alpha/alpha.c: Fix comment typos.
6652 * config/alpha/elf.h: Likewise.
6653 * config/arm/arm.c: Likewise.
6654 * config/arm/arm.h: Likewise.
6655 * config/arm/arm.md: Likewise.
6656 * config/arm/t-arm-coff: Likewise.
6657 * config/arm/t-strongarm-pe: Likewise.
6658 * config/arm/xscale-elf.h: Likewise.
6659 * config/avr/avr.h: Likewise.
6661 2003-07-01 Jeff Law <law@redhat.com>
6663 * stmt.c (any_pending_cleanups): Remove another redundant test.
6665 2003-07-01 David Edelsohn <edelsohn@gnu.org>
6666 J"orn Rennecke <joern.rennecke@superh.com>
6668 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
6671 2003-07-01 Devang Patel <dpatel@apple.com>
6673 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
6675 (struct dbx_file): New members - bincl_status, pending_bincl_name and
6677 (pending_bincls): New.
6678 (dbxout_init): Initialize new dbx_file members.
6679 (dbxout_start_source_file): Same.
6680 (emit_bincl_stab): New function.
6681 (emit_pending_bincls): Same.
6682 (emit_pending_bincls_if_required): Same.
6683 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
6685 (dbxout_begin_block): Emit pending BINCL stabs.
6686 (dbxout_end_block): Same.
6687 (dbxout_function_decl): Same.
6688 (dbxout_continue): Same.
6689 (dbxout_type): Same.
6690 (dbxout_class_name_qualifiers): Same.
6691 (dbxout_symbol): Same.
6692 (dbxout_symbol_location): Same.
6693 (dbxout_parms): Same.
6695 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6697 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
6698 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
6700 2003-07-01 Andreas Jaeger <aj@suse.de>
6702 * fold-const.c: Convert prototypes to ISO C90.
6703 * function.c: Likewise.
6704 * function.h: Likewise.
6706 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
6708 * doc/contrib.texi: Fix typos.
6709 * doc/invoke.texi: Likewise.
6710 * doc/passes.texi: Likewise.
6711 * doc/sourcebuild.texi: Likewise.
6712 * doc/tm.texi: Likewise.
6714 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
6716 * basic-block.h: Fix comment typos.
6717 * bb-reorder.c: Likewise.
6718 * c-format.c: Likewise.
6719 * cfgcleanup.c: Likewise.
6720 * cfghooks.h: Likewise.
6721 * cfgloop.c: Likewise.
6722 * cfgloopmanip.c: Likewise.
6723 * cfgrtl.c: Likewise.
6724 * cgraph.h: Likewise.
6725 * cgraphunit.c: Likewise.
6726 * combine.c: Likewise.
6727 * convert.c: Likewise.
6728 * dbxout.c: Likewise.
6731 * diagnostic.c: Likewise.
6732 * dwarf2out.c: Likewise.
6733 * et-forest.h: Likewise.
6735 * fold-const.c: Likewise.
6736 * function.h: Likewise.
6737 * gcov-io.h: Likewise.
6740 * genautomata.c: Likewise.
6741 * ggc-common.c: Likewise.
6742 * ggc-page.c: Likewise.
6743 * loop-unroll.c: Likewise.
6744 * loop-unswitch.c: Likewise.
6746 * mips-tfile.c: Likewise.
6747 * optabs.c: Likewise.
6748 * ra-build.c: Likewise.
6749 * ra-colorize.c: Likewise.
6750 * ra-rewrite.c: Likewise.
6752 * regmove.c: Likewise.
6753 * reload.c: Likewise.
6754 * rtlanal.c: Likewise.
6755 * sched-ebb.c: Likewise.
6756 * sched-int.h: Likewise.
6757 * sched-vis.c: Likewise.
6758 * sreal.c: Likewise.
6759 * ssa-ccp.c: Likewise.
6761 * toplev.c: Likewise.
6762 * tree-inline.c: Likewise.
6763 * value-prof.c: Likewise.
6764 * value-prof.h: Likewise.
6766 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
6768 * rtl.h (emit_line_note_after): Remove.
6769 (emit_note_copy_after, emit_note_copy): New.
6770 * emit-rtl.c (reorder_insns_with_line_notes): Replace
6771 emit_line_note_after with emit_note_copy_after.
6772 (emit_insn_after_with_line_notes): Likewise.
6773 (emit_line_note_after): Kill.
6774 (emit_note_copy_after): New.
6775 (emit_note_copy): New.
6776 * function.c (emit_return_into_block): Use emit_note_copy_after.
6777 (thread_prologue_and_epilogue_insns): Likewise.
6778 * integrate.c (expand_inline_function): Use emit_note_copy.
6779 (copy_insn_list): Likewise.
6780 * unroll.c (copy_loop_body): Likewise.
6781 * cfglayout.c (duplicate_insn_chain): Likewise.
6783 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
6785 * c-tree.h (define_label): Replace filename and lineno arguments
6787 * c-decl.c (poplevel): Adjust define_label call.
6788 (pop_label_level): Likewise.
6789 (define_label): Replace filename and lineno arguments with a
6791 (store_parm_decls): Use DECL_SOURCE_LOCATION.
6792 * c-parse.in (label): Adjust define_label call.
6794 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
6796 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
6797 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
6798 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
6799 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
6800 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
6802 2003-07-01 Andreas Jaeger <aj@suse.de>
6804 * final.c: Convert prototypes to ISO C90.
6806 * flags.h: Likewise.
6807 * gcov-io.c: Likewise.
6808 * gcov-io.h: Likewise.
6810 See ChangeLog.9 for earlier changes.