This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR bootstrap/30510: Gcc failed to bootstrap
- From: "H. J. Lu" <hjl at lucon dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 19 Jan 2007 18:33:10 -0800
- Subject: PATCH: PR bootstrap/30510: Gcc failed to bootstrap
This patch initializes 2 variables before using them. Works on
Linux/x86-64.
H.J.
----
cp/
2007-01-19 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/30510
* parser.c (cp_parser_class_specifier): Initialize bases.
fortran/
2007-01-19 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/30510
* resolve.c (resolve_function): Initialize name.
--- gcc/cp/parser.c.foo 2007-01-11 07:48:10.000000000 -0800
+++ gcc/cp/parser.c 2007-01-19 10:53:15.000000000 -0800
@@ -13203,7 +13203,7 @@ cp_parser_class_specifier (cp_parser* pa
bool saved_in_function_body;
tree old_scope = NULL_TREE;
tree scope = NULL_TREE;
- tree bases;
+ tree bases = NULL_TREE;
push_deferring_access_checks (dk_no_deferred);
--- gcc/fortran/resolve.c.foo 2007-01-18 10:42:36.000000000 -0800
+++ gcc/fortran/resolve.c 2007-01-19 10:56:44.000000000 -0800
@@ -1538,7 +1538,7 @@ resolve_function (gfc_expr * expr)
{
gfc_actual_arglist *arg;
gfc_symbol * sym;
- const char *name;
+ const char *name = NULL;
try t;
int temp;
procedure_type p = PROC_INTRINSIC;