This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, documentation] Add documentation for check_effective_target_strict_align


I was pinged about the lack of documentation for the
check_effective_target_non_strict_align procedure I added
to target-supports.exp.  This patch fixes that.  If I
don't get any objections in the next day or two I will
check this in as an obvious patch.

Steve Ellcey
sellcey@mips.com


2014-08-19  Steve Ellcey  <sellcey@mips.com>

	PR middle-end/49191
	* doc/sourcebuild.texi (non_strict_align): New.


2014-08-19  Steve Ellcey  <sellcey@mips.com>

	PR middle-end/49191
	* lib/target-supports.exp (check_effective_target_non_strict_align):
	Add function description.


diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi
index 7438980..5951b15 100644
--- a/gcc/doc/sourcebuild.texi
+++ b/gcc/doc/sourcebuild.texi
@@ -1686,6 +1686,9 @@ Target uses a ColdFire FPU.
 @item hard_float
 Target supports FPU instructions.
 
+@item non_strict_align
+Target does not require strict alignment.
+
 @item sse
 Target supports compiling @code{sse} instructions.
 
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 5ec1608..b471eaa 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -5777,6 +5777,8 @@ proc check_vect_support_and_set_flags { } {
     return 1
 }
 
+# Return 1 if the target does *not* require strict alignment.
+
 proc check_effective_target_non_strict_align {} {
     return [check_no_compiler_messages non_strict_align assembly {
 	char *y;



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]