PATCH: revert asm volatile change

Anthony Green green@cygnus.com
Thu Oct 8 16:07:00 GMT 1998


I am reverting my change from 1998-09-28.  It introduced a problem
that is worse than the one it solved.

Index: gcc/cp/ChangeLog
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/ChangeLog,v
retrieving revision 1.721
diff -c -r1.721 ChangeLog
*** ChangeLog   1998/10/08 05:04:53     1.721
--- ChangeLog   1998/10/08 22:59:58
***************
*** 1,3 ****
--- 1,8 ----
+ Thu Oct  8 15:58:30 1998  Anthony Green  <green@cygnus.com>
+
+       * semantics.c (finish_asm_stmt): Revert my 1998-09-28
+       change.
+
  Thu Oct  8 06:00:19 1998  Jeffrey A Law  (law@cygnus.com)

        * typeck.c (unsigned_type): Only return TItype nodes when
Index: gcc/cp/semantics.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/semantics.c,v
retrieving revision 1.32
diff -c -r1.32 semantics.c
*** semantics.c 1998/10/06 14:20:17     1.32
--- semantics.c 1998/10/08 22:59:58
***************
*** 730,748 ****
    else
      {
        emit_line_note (input_filename, lineno);
!
!       if (cv_qualifier != NULL_TREE
!         && cv_qualifier != ridpointers[(int) RID_VOLATILE])
!       cp_warning ("%s qualifier ignored on asm",
!                   IDENTIFIER_POINTER (cv_qualifier));

-       c_expand_asm_operands (string, output_operands,
-                            input_operands,
-                            clobbers,
-                            cv_qualifier
-                            == ridpointers[(int) RID_VOLATILE],
-                            input_filename, lineno);
-
        finish_stmt ();
      }
  }
--- 730,758 ----
    else
      {
        emit_line_note (input_filename, lineno);
!       if (output_operands != NULL_TREE || input_operands != NULL_TREE
!           || clobbers != NULL_TREE)
!       {
!         if (cv_qualifier != NULL_TREE
!             && cv_qualifier != ridpointers[(int) RID_VOLATILE])
!           cp_warning ("%s qualifier ignored on asm",
!                       IDENTIFIER_POINTER (cv_qualifier));
!
!         c_expand_asm_operands (string, output_operands,
!                                input_operands,
!                                clobbers,
!                                cv_qualifier
!                                == ridpointers[(int) RID_VOLATILE],
!                                input_filename, lineno);
!       }
!       else
!       {
!         if (cv_qualifier != NULL_TREE)
!           cp_warning ("%s qualifier ignored on asm",
!                       IDENTIFIER_POINTER (cv_qualifier));
!         expand_asm (string);
!       }

        finish_stmt ();
      }
  }


-- 
Anthony Green                                               Cygnus Solutions
                                                       Sunnyvale, California



More information about the Gcc-patches mailing list