Commit Graph

71411 Commits

Author SHA1 Message Date
Uros Bizjak
8d1d0da541 * config/fpu-387.h (set_fpu): Add "=m" for stmxcsr.
From-SVN: r105369
2005-10-13 14:54:30 +02:00
Sebastian Pop
b2ebf9137c re PR tree-optimization/24262 (ICE: verify_ssa failed with -O -msse2 -ftree-vectorize)
PR tree-optimization/24262
	* tree-data-ref.c (analyze_offset_expr): Check that init is invariant
	in loop all the time.

From-SVN: r105368
2005-10-13 11:52:57 +00:00
Mark Mitchell
8ca4bf259c re PR c++/22464 (ICE on classes in template functions which attempt closure)
PR c++/22464
	* semantics.c (finish_id_expression): Issue errors about uses of
	local variables in containing functions even in templates.
	PR c++/22180
	* call.c (build_new_method_call): Correct pretty-printing of
	destructor names.
	* pt.c (tsubst_qualified_id): Recognize invalid uses of "~T" as an
	identifier.
	PR c++/23694
	* decl.c (start_method): Return error_mark_node for errors.
	PR c++/23307
	* pt.c (push_template_decl_real): Complain about attempts to
	declare template variables.
	PR c++/22352
	* pt.c (tsubst_template_parms): Set processing_template_decl while
	processing the parameters.
	(tsubst_decl): Set processing_template_decl when substituting into
	a TEMPLATE_DECL.
	PR c++/22405
	* pt.c (most_specialized_instantiation): Robustify.
	PR c++/22464
	* g++.dg/template/crash/41.C: New test.
	PR c++/22180
	* g++.dg/template/crash40.C: New test.
	PR c++/23694
	* g++.dg/parse/friend5.C: New test.

	PR c++/23307
	* g++.dg/template/crash38.C: New test.

	PR c++/22352
	* g++.dg/template/friend38.C: New test.

	PR c++/22405
	* g++.dg/template/crash39.C: New test.

From-SVN: r105365
2005-10-13 08:38:40 +00:00
Hans-Peter Nilsson
f05c19d126 libstdc++.exp (libstdc++_init): Require native testing before setting v3-sharedlib to 1.
* testsuite/lib/libstdc++.exp (libstdc++_init): Require
	native testing before setting v3-sharedlib to 1.

From-SVN: r105361
2005-10-13 07:29:39 +00:00
Joe Buck
abf513b5af howto.html: Use reference to ifstream when including iosfwd.
2005-10-12  Joe Buck  <Joe.Buck@synopsys.com>

	* docs/html/27_io/howto.html: Use reference to ifstream when
	including iosfwd.

From-SVN: r105356
2005-10-13 04:15:44 +00:00
Hans-Peter Nilsson
48f99ad622 dwarf-char1.c, [...]: Skip for mmix-*-*
* gcc.dg/debug/dwarf2/dwarf-char1.c,
	gcc.dg/debug/dwarf2/dwarf-char2.c,
	gcc.dg/debug/dwarf2/dwarf-char3.c: Skip for mmix-*-*

From-SVN: r105349
2005-10-13 02:00:18 +00:00
Hans-Peter Nilsson
4f7ddf0635 * gcc.dg/intmax_t-1.c: Remove mmix-*-* from dg-error statement.
From-SVN: r105343
2005-10-13 00:54:07 +00:00
GCC Administrator
d5fe1b9f75 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r105340.2
2005-10-13 00:16:14 +00:00
Richard Henderson
52dd234b21 re PR c/24255 (__transparent_union__ mishandled)
PR c/24255
        * tree.h (DECL_TRANSPARENT_UNION): Remove.
        * function.c (assign_parm_find_data_types): Don't support it.
        * print-tree.c (print_node): Likewise.
        * c-common.c (handle_transparent_union_attribute): Likewise.
        Use build_duplicate_type.
        * tree-inline.c (remap_type_1): Split out of remap_type;
        properly remap aggregate fields.
        (build_duplicate_type): New.
        * doc/extend.texi (Variable Attributes): Remove documentation
        for transparent_union.

From-SVN: r105338
2005-10-12 16:34:09 -07:00
Eric Botcazou
6deb033913 re PR target/24284 (ICE (Segmentation fault))
PR target/24284
	* config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
	(gen_stack_pointer_dec): Likewise.

From-SVN: r105336
2005-10-12 22:12:39 +00:00
Danny Smith
43d9ad1dbd re PR target/21275 (gcc 4.0.0 crash with mingw when using stdout in global var)
PR middle-end/21275
	PR middle-end/21766
	* target.h (struct gcc_target): Add valid_dllimport_attribute_p
	target hook.
	(struct cxx): Add adjust_class_at_definition target hook.
	* target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
	defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
	(TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
	hook_void_tree. Add to TARGET_CXX.
	* tree.h (struct decl_with_vis): Rename non_addr_const_p field to
	dllimport_flag.
	(DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
	* tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
	instead of attribute. Check for dllexport override.  Warn if
	inconsistent dll linkage. Don't lose old dllimport if decl has
	had address referenced.   Tweak lookup of dllimport atribute.
	(handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
	for target specific rules.  Don't add dllimport attribute if
	DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
	dllimport attribute.
	(staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
	* varasm.c (initializer_constant_valid_p): Replace
	DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P

	PR target/21801
	PR target/23589
	* config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
	'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
	(i[34567]86-*-mingw32*): Likewise.

	* doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
	(TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.

	* config/i386/winnt.c (i386_pe_dllimport_p): Factor out
	C++-specific code. Change return value to bool.
	(i386_pe_dllimport_p): Likewise.
	(associated_type): Simplify and make language-independent
	(i386_pe_encode_section_info): Replace override of ambiguous
	dllimport symbol refs with a gcc_assert.
	(i386_pe_valid_dllimport_attribute_p): Define.
	* config/i386/winnt-cxx.c: New file. Define C++ versions of
	i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
	i386_pe_adjust_class_at_definition.
	* config/i386/winnt-stubs.c: New file. Define stub versions of
	lang-specific functions.
	* config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
	i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
	i386_pe_adjust_class_at_definition.
	(i386_pe_valid_dllimport_attribute_p): Declare.
	* config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
	(TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
	* config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.

	PR target/19704
	* config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
	dllimport attribute with test of DECL_DLLIMPORT_P.


cp
	PR target/21801
	PR target/23589
	* class.c (finish_struct_1): Call
	targetm.cxx.adjust_class_at_definition.


testsuite
	* gcc.dg/dll-2.c: Add tests for warnings.
	* gcc.dg/dll-3.c: Likewise.
	* gcc.dg/dll-4.c: Likewise.

	* g++.dg/ext/dllimport1.C: Adjust tests for warnings.
	* g++.dg/ext/dllimport2.C: Likewise.
	* g++.dg/ext/dllimport3.C: Likewise.
	* g++.dg/ext/dllimport7.C: Likewise.
	* g++.dg/ext/dllimport8.C: Likewise.
	* g++.dg/ext/dllimport9.C: Likewise.

From-SVN: r105332
2005-10-12 20:54:50 +00:00
Paul Thomas
bce7137612 [multiple changes]
2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/24092
	* trans-types.c (gfc_get_derived_type): Insert code to obtain backend
	declaration for derived types, building if necessary.  Return the
	derived type if the fields have been built by this process.  Otherwise,
	continue as before but using the already obtained backend_decls for the
	derived type components.  Change the gcc_assert to act on the field.

2005-10-10  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/24092
	* gfortran.dg/derived_pointer_recursion.f90: New test.

From-SVN: r105331
2005-10-12 20:41:28 +00:00
Adrian Straetling
8adac33500 combine.c (make_extraction): Correct offset computation.
* combine.c (make_extraction): Correct offset computation.
	* gcc.c-torture/execute/20051012-1.c: New test.

From-SVN: r105330
2005-10-12 20:30:46 +00:00
Paul Thomas
949d5b72e2 re PR fortran/18082 (Infinite loop with automatic length character objects)
2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/18082
	* decl.c (variable_decl): Make a new copy of the character
	length for each variable, when the expression is not a
	constant.

2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/18082
	gfortran.dg/automatic_char_len_1.f90: New test.

From-SVN: r105329
2005-10-12 20:29:21 +00:00
François-Xavier Coudert
944b8b35a9 gfortran.h: Add bitmasks for different FPE traps.
* gfortran.h: Add bitmasks for different FPE traps. Add fpe
	member to options_t.
	* invoke.texi: Document the new -ffpe-trap option.
	* lang.opt: Add -ffpe-trap option.
	* options.c (gfc_init_options): Initialize the FPE option.
	(gfc_handle_fpe_trap_option): New function to parse the argument
	of the -ffpe-trap option.
	(gfc_handle_option): Add case for -ffpe-trap.
	* trans-decl.c: Declare a tree for the set_fpe library function.
	(gfc_build_builtin_function_decls): Build this tree.
	(gfc_generate_function_code): Generate a call to set_fpe at
	the beginning of the main program.
	* trans.h: New tree for the set_fpe library function.

	* Makefile.am: Add fpu.c to the build process, and
	target-dependent code as fpu-target.h.
	* Makefile.in: Regenerate.
	* configure.ac: Add call to configure.host to set
	FPU_HOST_HEADER.
	* configure: Regenerate.
	* config.h.in: Regenerate.
	* aclocal.m4: Regenerate.
	* configure.host: New script to determine which host-dependent
	code should go in.
	* libgfortran.h: Add fpe option, remove previous fpu_ options.
	Add bitmasks for different FPE traps. Add prototype for set_fpu.
	* runtime/environ.c: Remove environment variables to control
	fpu behaviour.
	* runtime/fpu.c (set_fpe): New function for the front-end.
	* runtime/main.c (init): Set FPU state.
	* config: New directory to store host-dependent code.
	* config/fpu-387.h: New file with code handling the i387 FPU.
	* config/fpu-glibc.h: New file with code for glibc systems.
	* config/fpu-generic.h: Fallback for the most generic host. Issue
	warnings.

From-SVN: r105328
2005-10-12 20:21:31 +00:00
Paul Thomas
f23a977ce5 2005-10-12 Paul Thomas <pault@gcc.gnu.org>
gfortran.dg/save_common.f90, save_result.f90: Add missing newlines
	at ends of file..

From-SVN: r105326
2005-10-12 20:12:46 +00:00
Paul Thomas
96b9572550 re PR fortran/20847 (common block object may not have save attribute)
2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/20847
	PR fortran/20856
	* symbol.c (check_conflict): Prevent common variables and
	function results from having the SAVE attribute,as required
	by the standard.

2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/20847
	gfortran.dg/save_common.f90: New test.

	PR fortran/20856
	gfortran.dg/save_result.f90: New test.

From-SVN: r105325
2005-10-12 20:05:04 +00:00
Janne Blomqvist
4def9c5307 unix.c: Remove parts of patch of 2005/10/07 that cause input from the terminal to hang.
2005-10-12  Janne Blomqvist <jblomqvi@cc.hut.fi>

	* io/unix.c: Remove parts of patch of 2005/10/07 that cause
	input from the terminal to hang.

From-SVN: r105324
2005-10-12 19:54:59 +00:00
Hans-Peter Nilsson
9f92185eb9 * config/cris/t-linux (LIMITS_H_TEST): Define.
From-SVN: r105322
2005-10-12 19:40:28 +00:00
Nathan Sidwell
fdeff56396 re PR c++/21592 (ICE in resolve_overloaded_unification/arg_assoc)
cp:
	PR c++/21592
	* pt.c (build_non_dependent_expr): Don't wrap a COMPONENT_REF
	with already looked up member functions.  Assert we're not
	returning a NON_DEPENDENT_EXPR with unknown type.
	* typeck.c (finish_class_member_access_expr):  We can get
	non-template-id-expr baselinks.  If the lookup finds a baselink,
	remember it even inside templates.
testsuite:
	PR c++/21592
	* g++.dg/template/dependent-expr1.C: Add new expected error.
	* g++.dg/template/dependent-expr2.C: Adjust error text.
	* g++.dg/template/overload6.C: New.

From-SVN: r105313
2005-10-12 18:13:41 +00:00
Nathan Sidwell
3ce5fa4fa6 re PR c++/23797 (ICE on typename outside template)
cp:
	PR c++/23797
	* parser.c (cp_parser_functional_cast): Cope when TYPE is not a
	TYPE_DECL.  Use dependent_type_p to check type.
	* pt.c (uses_template_parms_p): Use dependent_type_p for a
	TYPE_DECL.
	(type_dependent_expression_p): Assert we've not been given a
	TYPE_DECL.
testsuite:
	PR c++/23797
	* g++.dg/other/typename8.C: New.

From-SVN: r105312
2005-10-12 18:07:43 +00:00
Nathan Sidwell
51b15ede49 re PR c++/21117 (ICE after error about returning an incomplete type)
cp:
	PR c++/21117
	* decl.c (check_function_type): Correctly overwrite incomplete
	return type with void type.
	* typeck.c (check_return_expr): If the function's return type is
	void, don't try and convert a return expr.
testsuite:
	PR c++/21117
	* g++.dg/other/return1.C: New.

From-SVN: r105310
2005-10-12 18:02:52 +00:00
Richard Henderson
a4d25453fa re PR rtl-optimization/23324 (unsigned bitfield in struct not accessed correctly at -O2 and above)
PR rtl-opt/23324
        * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.

From-SVN: r105306
2005-10-12 09:29:35 -07:00
David Edelsohn
687d71b35f re PR c++/23730 (ICE instead of reporting a call to a non-existent member function)
PR c++/23730
        * call.c (build_object_call): If BINFO is NULL, bypass
        lookup_fnfields and set fns to NULL_TREE.

From-SVN: r105304
2005-10-12 11:03:12 -04:00
Andreas Schwab
985943dfe6 Remove conflict marker.
From-SVN: r105301
2005-10-12 13:40:05 +00:00
Paolo Bonzini
39e837db6a ==> cp/ChangeLog <==
2005-10-12  Paolo Bonzini  <bonzini@gnu.org>

	PR c++/24052
	* error.c (dump_expr): Pass LABEL_DECL to dump_decl.  Print
	an ADDR_EXPR of a LABEL_DECL as &&.

==> testsuite/ChangeLog <==
2005-10-12  Paolo Bonzini  <bonzini@gnu.org>

	PR c++/24052
	* g++.dg/ext/label5.C: New.

From-SVN: r105297
2005-10-12 13:16:22 +00:00
Richard Guenther
c8c7ed52e4 Makefile.in (CGRAPH_H): Depend on $(TREE_H).
2005-10-12  Richard Guenther  <rguenther@suse.de>

	* Makefile.in (CGRAPH_H): Depend on $(TREE_H).

From-SVN: r105294
2005-10-12 12:38:00 +00:00
Nathan Sidwell
dbe91deb9a re PR c++/19964 (ICE on invalid member declaration)
PR c++/19964
	* stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
	DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
	type.
cp:
	PR c++/19964
	* cp/class.c (walk_subobject_offsets): Don't walk error_mark_node.
testsuite:
	PR c++/19964
	* g++.dg/parse/crash31.C: New.

From-SVN: r105293
2005-10-12 10:59:27 +00:00
Razya Ladelsky
25c5165b9a Adding IPCP and versioning new tests
From-SVN: r105292
2005-10-12 09:32:34 +00:00
Razya Ladelsky
3a3dd86512 ipa-1.c: New test.
* gcc.dg/ipa/ipa-1.c: New test.
        * gcc.dg/ipa/ipa-2.c: New test.
        * gcc.dg/ipa/ipa-3.c: New test.
        * gcc.dg/ipa/ipa-4.c: New test.
        * gcc.dg/ipa/ipa-5.c: New test.
        * gcc.dg/ipa/ipa.exp: New file.

From-SVN: r105291
2005-10-12 09:31:34 +00:00
Richard Guenther
e2953e417a re PR c++/23799 (ICE: no-op convert from 8 to 4 bytes in initializer)
2005-10-12  Richard Guenther  <rguenther@suse.de>

	PR c++/23799
	* varasm.c (output_constant): Correct typo from previous
	patch by DJ.

From-SVN: r105290
2005-10-12 08:55:59 +00:00
Paul Thomas
0f9d970d60 re PR fortran/24207 (PRIVATE/PUBLIC attribute confusion screws NAMELIST)
2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/24207
	* resolve.c (resolve_symbol): Exclude use and host associated
	symbols from the test for private objects in a public namelist.

2005-10-12  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/24207
	gfortran.dg/private_type_3.f90: New test.

From-SVN: r105289
2005-10-12 07:19:56 +00:00
Jakub Jelinek
81871c2a05 trans-common.c (build_field): Fix comment typo.
* trans-common.c (build_field): Fix comment typo.
	(create_common): Set backend_decl of COMMON or EQUIVALENCEd
	variables to a VAR_DECL with the COMPONENT_REF in
	DECL_HAS_VALUE_EXPR rather than COMPONENT_REF directly.
	* f95-lang.c (gfc_expand_function): Emit debug info for
	EQUIVALENCEd variables if the equiv union is going to be output.

From-SVN: r105288
2005-10-12 08:18:12 +02:00
Andrew Pinski
595cf76b1f re PR libstdc++/23926 (libstdc++-v3 configure failed)
2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>

        PR libstdc++/23926
        * acinclude.m4 (GLIBCXX_ENABLE_SYMVERS): Fix typo in check
        for GNU LD.
        * configure: Regenerate.

From-SVN: r105285
2005-10-11 18:18:03 -07:00
GCC Administrator
6cc097c6c8 Daily bump.
[[Split portion of a mixed commit.]]

From-SVN: r105278.2
2005-10-12 00:16:12 +00:00
Steven G. Kargl
5dd17af574 re PR fortran/20786 (Can't use AINT intrinsic with KIND parameter)
PR fortran/20786
* iresolve.c (gfc_resolve_aint, gfc_resolve_anint ): Type conversion
  of the argument.

gfortran.dg/aint_anint_1.f90: New test.

From-SVN: r105276
2005-10-11 23:58:17 +00:00
Ian Lance Taylor
4bbae09f17 re PR rtl-optimization/13931 (combiner much slower on big basic blocks)
PR rtl-optimization/13931
	* combine.c: Revert patch of 2003-05-14, and:
	(try_combine): Only set elim_i1 and elim_i2 if the destination is
	completely killed in the appropriate insn.
	(distribute_notes): Don't skip multiple hard register test for
	elim_i1 and elim_i2.

From-SVN: r105275
2005-10-11 23:45:54 +00:00
Steven G. Kargl
a2694f689c re PR libfortran/24313 (complex sqrt function does not return principal value)
PR libgfortran/24313
* c99_functions.c (csqrtf, csqrt): Fix choice of branch cut.  Note
  csqrt{f} were imported from glibc, and this bug is still present
  there. glibc PR is 1146.

From-SVN: r105274
2005-10-11 23:35:27 +00:00
Ian Lance Taylor
55792875db re PR c++/8057 (Templates/non-templates and warnings about statements without effects)
cp/
	PR c++/8057
	* cvt.c (convert_to_void): Don't warn about unused values when
	processing a template declaration.
testsuite/
	PR c++/8057
	* g++.dg/warn/noeffect7.C: New test.
	* g++.dg/warn/noeffect2.C: Instantiate templates.
	* g++.dg/warn/noeffect4.C: Instantiate template.  Add new error
	and warning.

From-SVN: r105273
2005-10-11 23:30:57 +00:00
Richard Henderson
0257e3837e re PR c/24255 (__transparent_union__ mishandled)
PR c/24255
        * c-typeck.c (convert_for_assignment): Use build_constructor_single
        to initialize a transparent union instead of a nop_expr.

From-SVN: r105270
2005-10-11 15:52:04 -07:00
Richard Henderson
a4176272bf Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
* Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
        * tree-ssa-dce.c: Include tree-scalar-evolution.h.
        (tree_ssa_dce_loop): Call scev_reset.

From-SVN: r105266
2005-10-11 15:24:36 -07:00
Jakub Jelinek
24cc11935c f95-lang.c (gfc_init_decl_processing): Initialize void_list_node.
* f95-lang.c (gfc_init_decl_processing): Initialize
	void_list_node.

From-SVN: r105265
2005-10-12 00:01:02 +02:00
Mark Mitchell
393e756da7 re PR c++/21089 (C++ front-end does not "inline" the static const double)
PR c++/21089
	* call.c (convert_like_real): Use decl_constant_value, not
	integral_constant_value.
	* init.c (constant_value_1): New function.
	(integral_constant_value): Use it.
	(decl_constant_value): Likewise.
	* typeck.c (decay_conversion): Use decl_constant_value, not
	integral_constant_value.
	PR c++/21089
	* g++.dg/init/float1.C: New test.

From-SVN: r105256
2005-10-11 20:58:46 +00:00
Mark Mitchell
8f4c0ef6a4 Fix typo
From-SVN: r105255
2005-10-11 20:57:16 +00:00
Mark Mitchell
c0b16a7045 re PR c++/21369 (Template function definition rejected if function return type begins with 'struct')
PR c++/21369
	* g++.dg/init/member1.C: Tweak error markers.

From-SVN: r105252
2005-10-11 20:53:55 +00:00
Richard Henderson
4989673889 re PR tree-optimization/24300 (segfault in operand_equal_p with -ftree-vectorize)
PR tree-opt/24300
        * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
        * tree-ssa-dce.c: Include cfgloop.h.
        (tree_ssa_dce_loop, pass_dce_loop): New.
        * tree-pass.h (pass_dce_loop): Declare it.
        * passes.c (init_optimization_passes): Use it.

From-SVN: r105250
2005-10-11 12:18:24 -07:00
Eric Botcazou
5e8b5b0868 re PR middle-end/24263 (gcc.dg/torture/builtin-convert-1.c fails)
PR middle-end/24263
	* convert.c (convert_to_real): Revert 2005-10-05 patch.
	Only apply the optimization for rounding builtins if the inner
	cast is also an extension.

From-SVN: r105249
2005-10-11 18:14:57 +00:00
Janis Johnson
8c07e3d7a7 re PR testsuite/24281 (WARNING: Could not execute gcc.dg/compat/struct-layout-1 generator)
PR testsuite/24281
	* gcc.dg/compat/struct-layout-1_generator.c (generate_fields):
	Check for null pointer.

From-SVN: r105243
2005-10-11 17:04:45 +00:00
Mark Mitchell
ca85f65910 re PR c++/21369 (Template function definition rejected if function return type begins with 'struct')
PR c++/21369
	* parser.c (cp_parser_elaborated_type_specifier): Don't treat
	class types as templates if the type is not appearing as part of a
	type definition or declaration.
	PR c++/21369
	* g++.dg/parse/ret-type3.C: New test.

From-SVN: r105241
2005-10-11 16:38:52 +00:00
Andrew Pinski
386cfa6f3f re PR tree-optimization/23946 (ICE: verify_ssa failed ("definition ... follows the use"))
2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/23946
        * gcc.c-torture/compile/pr23946.c: New test.

2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>

        PR tree-opt/23946
        * tree-ssa-ccp.c (execute_fold_all_builtins): Call
        mark_new_vars_to_rename instead of update_stmt.

From-SVN: r105239
2005-10-11 08:11:02 -07:00