This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: revert asm volatile change
- To: egcs-patches at cygnus dot com
- Subject: PATCH: revert asm volatile change
- From: Anthony Green <green at cygnus dot com>
- Date: Thu, 8 Oct 1998 16:03:22 -0700
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