[committed] Fix failure of c-c++-common/Wunused-var-12.c on 32-bit hppa*-*-hpux*

John David Anglin dave@hiauly1.hia.nrc.ca
Thu Sep 9 03:02:00 GMT 2010


The attached change fixes c-c++-common/Wunused-var-12.c on 32-bit hppa*-*-hpux*.
The -fno-common option because common has a maximum alignment of eight byte.

Tested on hppa2.0w-hp-hpux11.11 and hppa64-hp-hpux11.11.  Committed to trunk.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)

2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* c-c++-common/Wunused-var-12.c: Add -fno-common to options on 32-bit
	hppa*-*-hpux*.

Index: c-c++-common/Wunused-var-12.c
===================================================================
--- c-c++-common/Wunused-var-12.c	(revision 163936)
+++ c-c++-common/Wunused-var-12.c	(working copy)
@@ -1,6 +1,7 @@
 /* PR c++/44780 */
 /* { dg-do compile } */
 /* { dg-options "-Wunused" } */
+/* { dg-options "-Wunused -fno-common" { target { { hppa*-*-hpux* } && { ! hppa*64*-*-* } } } } */
 
 typedef double vec __attribute__ ((__vector_size__ (16)));
 vec c, d;



More information about the Gcc-patches mailing list