* [Bug bootstrap/51098] [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267
2011-11-11 14:14 [Bug bootstrap/51098] New: [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267 evstupac at gmail dot com
@ 2011-11-11 14:20 ` evstupac at gmail dot com
2011-11-11 15:03 ` jakub at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: evstupac at gmail dot com @ 2011-11-11 14:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51098
--- Comment #1 from Stupachenko Evgeny <evstupac at gmail dot com> 2011-11-11 14:14:11 UTC ---
Most likely it is revision 181261
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/51098] [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267
2011-11-11 14:14 [Bug bootstrap/51098] New: [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267 evstupac at gmail dot com
2011-11-11 14:20 ` [Bug bootstrap/51098] " evstupac at gmail dot com
@ 2011-11-11 15:03 ` jakub at gcc dot gnu.org
2011-11-14 12:06 ` evstupac at gmail dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-11-11 15:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51098
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-11-11 14:20:32 UTC ---
You are omitting the important details how exactly it failed. E.g.
grep -C6 x86_avx makelog.181267.trunk.i686.corei7-avx
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/51098] [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267
2011-11-11 14:14 [Bug bootstrap/51098] New: [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267 evstupac at gmail dot com
2011-11-11 14:20 ` [Bug bootstrap/51098] " evstupac at gmail dot com
2011-11-11 15:03 ` jakub at gcc dot gnu.org
@ 2011-11-14 12:06 ` evstupac at gmail dot com
2011-11-14 23:21 ` ubizjak at gmail dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: evstupac at gmail dot com @ 2011-11-14 12:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51098
--- Comment #3 from Stupachenko Evgeny <evstupac at gmail dot com> 2011-11-14 09:40:18 UTC ---
Created attachment 25815
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25815
make output
The additional information (make log grep) is attached.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/51098] [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267
2011-11-11 14:14 [Bug bootstrap/51098] New: [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267 evstupac at gmail dot com
` (2 preceding siblings ...)
2011-11-14 12:06 ` evstupac at gmail dot com
@ 2011-11-14 23:21 ` ubizjak at gmail dot com
2011-11-15 0:13 ` rth at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ubizjak at gmail dot com @ 2011-11-14 23:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51098
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |x86-avx
CC| |rth at gcc dot gnu.org
--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2011-11-14 22:52:42 UTC ---
It looks that your assembler doesn't support AVX, so a fallback is triggered in
config/x86/x86_avx.cc:
#ifdef HAVE_AS_AVX
...
#define OUTPUT(T) _ITM_TYPE_##T
#define INPUT(T,X) , _ITM_TYPE_##T X
#else
...
#define OUTPUT(T) void
#define INPUT(T,X)
#endif
#define ITM_READ_MEMCPY(T, LSMOD, TARGET, M2) \
OUTPUT(T) ITM_REGPARM _ITM_##LSMOD##T (const _ITM_TYPE_##T *ptr) \
...
The problem is, that declarations in libitm.h do not agree with this:
#define ITM_BARRIERS(T) \
extern _ITM_TYPE_##T _ITM_R##T(const _ITM_TYPE_##T *) ITM_REGPARM; \
extern _ITM_TYPE_##T _ITM_RaR##T(const _ITM_TYPE_##T *) ITM_REGPARM; \
extern _ITM_TYPE_##T _ITM_RaW##T(const _ITM_TYPE_##T *) ITM_REGPARM; \
extern _ITM_TYPE_##T _ITM_RfW##T(const _ITM_TYPE_##T *) ITM_REGPARM; \
...
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/51098] [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267
2011-11-11 14:14 [Bug bootstrap/51098] New: [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267 evstupac at gmail dot com
` (3 preceding siblings ...)
2011-11-14 23:21 ` ubizjak at gmail dot com
@ 2011-11-15 0:13 ` rth at gcc dot gnu.org
2011-11-16 10:57 ` evstupac at gmail dot com
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rth at gcc dot gnu.org @ 2011-11-15 0:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51098
--- Comment #5 from Richard Henderson <rth at gcc dot gnu.org> 2011-11-14 23:50:59 UTC ---
... which will not be declared if AVX support is disavowed.
... except that the configure was --with-arch=corei7-avx.
If true, the problem is user error. How can you expect to
configure for corei7-avx without a working avx assembler?
Otherwise, we've mis-identified the assembler support and
this is a configure bug.
Only the reporter can tell us which of these alternatives hold.
---
I suppose we could change the configure check to be
#ifndef __AVX__
asm ("vzeroupper");
#endif
assuming that if --with-arch/CFLAGS says avx is present, believe it.
Let this fail later (again as user error) if the assembler can't
actually assemble AVX insns.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/51098] [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267
2011-11-11 14:14 [Bug bootstrap/51098] New: [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267 evstupac at gmail dot com
` (4 preceding siblings ...)
2011-11-15 0:13 ` rth at gcc dot gnu.org
@ 2011-11-16 10:57 ` evstupac at gmail dot com
2011-11-16 14:57 ` ubizjak at gmail dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: evstupac at gmail dot com @ 2011-11-16 10:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51098
--- Comment #6 from Stupachenko Evgeny <evstupac at gmail dot com> 2011-11-16 10:32:31 UTC ---
Bootstrap fail was caused by later commit (revision 181246):
------------------------------------------------------------------------
r181246 | rth | 2011-11-10 04:29:38 +0400 (Thu, 10 Nov 2011) | 1 line
Changed paths:
M /trunk/libitm/ChangeLog
M /trunk/libitm/acinclude.m4
M /trunk/libitm/config/x86/x86_avx.cc
M /trunk/libitm/config.h.in
M /trunk/libitm/configure
M /trunk/libitm/configure.ac
libitm: Work around assembler missing AVX insns.
181154 aldyh fi
181154 aldyh
181246 rth case "${target_cpu}" in
181246 rth i345686 | x86_64)
181246 rth { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the
assembler supports AVX" >&5
181246 rth $as_echo_n "checking if the assembler supports AVX... " >&6;
}
181246 rth if test "${libitm_cv_as_avx+set}" = set; then :
181246 rth $as_echo_n "(cached)
i345686 shoud be i[3456]86
That is why HAVE_AS_AVX was not set for i686 target_cpu.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/51098] [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267
2011-11-11 14:14 [Bug bootstrap/51098] New: [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267 evstupac at gmail dot com
` (5 preceding siblings ...)
2011-11-16 10:57 ` evstupac at gmail dot com
@ 2011-11-16 14:57 ` ubizjak at gmail dot com
2011-11-16 14:58 ` uros at gcc dot gnu.org
2011-11-16 14:59 ` ubizjak at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: ubizjak at gmail dot com @ 2011-11-16 14:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51098
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2011-11-16
AssignedTo|unassigned at gcc dot |ubizjak at gmail dot com
|gnu.org |
Target Milestone|--- |4.7.0
Ever Confirmed|0 |1
--- Comment #7 from Uros Bizjak <ubizjak at gmail dot com> 2011-11-16 14:46:41 UTC ---
I have a patch.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/51098] [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267
2011-11-11 14:14 [Bug bootstrap/51098] New: [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267 evstupac at gmail dot com
` (6 preceding siblings ...)
2011-11-16 14:57 ` ubizjak at gmail dot com
@ 2011-11-16 14:58 ` uros at gcc dot gnu.org
2011-11-16 14:59 ` ubizjak at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: uros at gcc dot gnu.org @ 2011-11-16 14:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51098
--- Comment #8 from uros at gcc dot gnu.org 2011-11-16 14:51:19 UTC ---
Author: uros
Date: Wed Nov 16 14:51:13 2011
New Revision: 181408
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181408
Log:
PR bootstrap/51098
* acinclude.m4 (LIBITM_CHECK_AS_AVX): Fix target selector.
* configure: Regenerate.
Modified:
trunk/libitm/ChangeLog
trunk/libitm/acinclude.m4
trunk/libitm/configure
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug bootstrap/51098] [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267
2011-11-11 14:14 [Bug bootstrap/51098] New: [4.7 Regression] bootstrap failed on avx i686, svn revision 181259 to 181267 evstupac at gmail dot com
` (7 preceding siblings ...)
2011-11-16 14:58 ` uros at gcc dot gnu.org
@ 2011-11-16 14:59 ` ubizjak at gmail dot com
8 siblings, 0 replies; 10+ messages in thread
From: ubizjak at gmail dot com @ 2011-11-16 14:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51098
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Version|unknown |4.7.0
Resolution| |FIXED
--- Comment #9 from Uros Bizjak <ubizjak at gmail dot com> 2011-11-16 14:56:48 UTC ---
Should be fixed now.
^ permalink raw reply [flat|nested] 10+ messages in thread