function.c (allocate_struct_function): Do not initialize expr, emit and varasm.
authorJan Hubicka <jh@suse.cz>
Thu, 22 Jan 2004 10:52:20 +0000 (11:52 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 22 Jan 2004 10:52:20 +0000 (10:52 +0000)
* function.c (allocate_struct_function): Do not initialize expr, emit
and varasm.
(prepare_function_start): Do it here.
* c-parse.in (maybe_type_qual): Do not produce line number notes.

From-SVN: r76345

gcc/ChangeLog
gcc/c-parse.in
gcc/function.c

index 5a199711ffa437501d17151c44d31565fd9150b4..1bdeb2ef39ff680bfb92498a34c049a012a5bbb7 100644 (file)
@@ -1,3 +1,10 @@
+2004-01-22  Jan Hubicka  <jh@suse.cz>
+
+       * function.c (allocate_struct_function): Do not initialize expr, emit
+       and varasm.
+       (prepare_function_start): Do it here.
+       * c-parse.in (maybe_type_qual): Do not produce line number notes.
+
 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
 
        PR target/13559
index 4cdbfed8b0c6a68b14637aff34a113a793b3d89e..3804ea5460b848d8e350e8d4d71dca4e6ea2ca27 100644 (file)
@@ -2504,10 +2504,9 @@ label:     CASE expr_no_commas ':'
 
 maybe_type_qual:
        /* empty */
-               { emit_line_note (input_location);
-                 $$ = NULL_TREE; }
+               { $$ = NULL_TREE; }
        | TYPE_QUAL
-               { emit_line_note (input_location); }
+               { }
        ;
 
 xexpr:
index 2b710b42aba86495dd8f570efdcd7879f6252117..2cdcdd33e36f08ccad8ba81cada7520a0b8bd908 100644 (file)
@@ -6394,9 +6394,6 @@ allocate_struct_function (tree fndecl)
 
   init_stmt_for_function ();
   init_eh_for_function ();
-  init_emit ();
-  init_expr ();
-  init_varasm_status (cfun);
 
   (*lang_hooks.function.init) (cfun);
   if (init_machine_status)
@@ -6434,6 +6431,9 @@ prepare_function_start (tree fndecl)
     cfun = DECL_SAVED_INSNS (fndecl);
   else
     allocate_struct_function (fndecl);
+  init_emit ();
+  init_varasm_status (cfun);
+  init_expr ();
 
   cse_not_expected = ! optimize;