* [Bug lto/45475] target use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
@ 2010-11-29 18:28 ` ebotcazou at gcc dot gnu.org
2010-11-29 18:30 ` ebotcazou at gcc dot gnu.org
` (10 subsequent siblings)
11 siblings, 0 replies; 17+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2010-11-29 18:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot
| |gnu.org
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2010-11-29 18:17:43 UTC ---
This is only the tip of the iceberg though. The attribute isn't rematerialized
on the LTRANS side so, with the help of the TYPE_MODE kludge for vector types:
/* Vector types need to check target flags to determine type. */
extern enum machine_mode vector_type_mode (const_tree);
#define TYPE_MODE(NODE) \
(TREE_CODE (TYPE_CHECK (NODE)) == VECTOR_TYPE \
? vector_type_mode (NODE) : (NODE)->type.mode)
#define SET_TYPE_MODE(NODE, MODE) \
(TYPE_CHECK (NODE)->type.mode = (MODE))
it still breaks LTO bootstrap on x86:
eric@atlantis:~/build/gcc/native32-lto> gcc/lto1 -quiet -mtune=pentium
-march=pentium -O2 -fomit-frame-pointer -fuse-linker-plugin -frandom-seed=1
-fltrans cc1.ltrans29.o
In file included from /home/eric/svn/gcc/gcc/attribs.c:7134:0,
from :3737:
/home/eric/svn/gcc/libcpp/lex.c: In function 'search_line_sse2':
/home/eric/svn/gcc/libcpp/lex.c:370:15: internal compiler error: in
convert_move, at expr.c:326
Please submit a full bug report,
Reduced testcase to be attached:
eric@atlantis:~/build/gcc/native32> gcc/xgcc -Bgcc -o lex lex.c -flto
In file included from lex.c:15:0,
from :0:
lex.c: In function 'foo':
lex.c:16:15: internal compiler error: in convert_move, at expr.c:326
Please submit a full bug report,
with preprocessed source if appropriate.
eric@atlantis:~/build/gcc/native32> gcc/xgcc -Bgcc -o lex lex.c -flto -msse2
eric@atlantis:~/build/gcc/native32>
The TYPE_MODE kludge makes the mode of vector types depend on the attribute.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug lto/45475] target use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
2010-11-29 18:28 ` [Bug lto/45475] target use in libcpp breaks LTO bootstrap ebotcazou at gcc dot gnu.org
@ 2010-11-29 18:30 ` ebotcazou at gcc dot gnu.org
2010-11-29 19:06 ` andi-gcc at firstfloor dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 17+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2010-11-29 18:30 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2010-11-29 18:18:33 UTC ---
Created attachment 22565
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22565
Reduced testcase for x86
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug lto/45475] target use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
2010-11-29 18:28 ` [Bug lto/45475] target use in libcpp breaks LTO bootstrap ebotcazou at gcc dot gnu.org
2010-11-29 18:30 ` ebotcazou at gcc dot gnu.org
@ 2010-11-29 19:06 ` andi-gcc at firstfloor dot org
2010-11-30 12:35 ` rguenth at gcc dot gnu.org
` (8 subsequent siblings)
11 siblings, 0 replies; 17+ messages in thread
From: andi-gcc at firstfloor dot org @ 2010-11-29 19:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |NEW
Resolution|FIXED |
--- Comment #8 from Andi Kleen <andi-gcc at firstfloor dot org> 2010-11-29 18:51:19 UTC ---
Reopen it if it's really still broken.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug lto/45475] target use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2010-11-29 19:06 ` andi-gcc at firstfloor dot org
@ 2010-11-30 12:35 ` rguenth at gcc dot gnu.org
2011-02-01 20:45 ` pinskia at gcc dot gnu.org
` (7 subsequent siblings)
11 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-30 12:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-30 12:17:31 UTC ---
Confirmed.
Also doesn't work with -flto-partition=none:
> ./xgcc -B. -o t t.c -flto -m32 -march=i386 -flto-partition=none
In file included from t.c:16:0,
from :0:
t.c: In function 'foo':
t.c:16:15: internal compiler error: in convert_move, at expr.c:326
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: ./xgcc returned 1 exit status
collect2: lto-wrapper returned 1 exit status
but we agreed that a target option that changes the mode of types isn't
valid and should be rejected by the target. See PR45325 (of which this
is IMHO a duplicate).
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug lto/45475] target use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2010-11-30 12:35 ` rguenth at gcc dot gnu.org
@ 2011-02-01 20:45 ` pinskia at gcc dot gnu.org
2011-02-01 21:19 ` aldot at gcc dot gnu.org
` (6 subsequent siblings)
11 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-02-01 20:45 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldot at gcc dot gnu.org
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-02-01 19:01:58 UTC ---
*** Bug 47578 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug lto/45475] target use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2011-02-01 20:45 ` pinskia at gcc dot gnu.org
@ 2011-02-01 21:19 ` aldot at gcc dot gnu.org
2011-10-07 5:46 ` andi-gcc at firstfloor dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 17+ messages in thread
From: aldot at gcc dot gnu.org @ 2011-02-01 21:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
--- Comment #11 from Bernhard Reutner-Fischer <aldot at gcc dot gnu.org> 2011-02-01 19:44:13 UTC ---
(In reply to comment #10)
> *** Bug 47578 has been marked as a duplicate of this bug. ***
bug 47578 above stumbled across TS_OPTIMIZE. Quote from proposed patch there:
DECL_FUNCTION_SPECIFIC_OPTIMIZATION is already handled in
lto_input_ts_function_decl_tree_pointers and
lto_output_ts_function_decl_tree_pointers, respectively. So, under the
assumption that TS_OPTIMIZE means function-specific-opts and as such only ever
applies to fn-decls, remove the redundant sorry().
gcc/ChangeLog:
2010-02-01 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
* lto-streamer-in.c (lto_input_tree_pointers): Do not handle
TS_OPTIMIZATION.
* lto-streamer-out.c (lto_output_tree_pointers): Ditto.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug lto/45475] target use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2011-02-01 21:19 ` aldot at gcc dot gnu.org
@ 2011-10-07 5:46 ` andi-gcc at firstfloor dot org
2011-12-14 10:36 ` ebotcazou at gcc dot gnu.org
` (4 subsequent siblings)
11 siblings, 0 replies; 17+ messages in thread
From: andi-gcc at firstfloor dot org @ 2011-10-07 5:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #12 from Andi Kleen <andi-gcc at firstfloor dot org> 2011-10-07 05:45:29 UTC ---
Fixed for quite some time
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug lto/45475] target use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2011-10-07 5:46 ` andi-gcc at firstfloor dot org
@ 2011-12-14 10:36 ` ebotcazou at gcc dot gnu.org
2012-08-26 23:53 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
11 siblings, 0 replies; 17+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-12-14 10:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #13 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-12-14 10:29:00 UTC ---
> Fixed for quite some time
You shouldn't close a PR without installing the testcase in the testsuite. Had
you done so, you would have seen that it isn't fixed at all:
eric@atlantis:~/build/gcc/native32-lto> prev-gcc/xgcc -B prev-gcc -o pr45475
pr45475.c -flto
In file included from pr45475.c:15:0,
from :0:
pr45475.c: In function 'foo':
pr45475.c:16:15: internal compiler error: in convert_move, at expr.c:330
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: prev-gcc/xgcc returned 1 exit status
eric@atlantis:~/build/gcc/native32-lto> prev-gcc/xgcc -v
Using built-in specs.
COLLECT_GCC=prev-gcc/xgcc
Target: i586-suse-linux
Configured with: /home/eric/svn/gcc/configure --build=i586-suse-linux
--prefix=/home/eric/install/gcc --with-as=/home/eric/install/gcc/bin/as
--with-ld=/home/eric/install/gcc/bin/ld --enable-languages=c,ada,lto
--enable-stage1-languages=c,ada,lto --with-build-config=bootstrap-lto
--enable-checking=yes,rtl --enable-__cxa_atexit --disable-nls
--disable-libmudflap
Thread model: posix
gcc version 4.7.0 20111214 (experimental) [trunk revision 182322] (GCC)
Thus reopening...
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug lto/45475] target use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2011-12-14 10:36 ` ebotcazou at gcc dot gnu.org
@ 2012-08-26 23:53 ` pinskia at gcc dot gnu.org
2012-10-15 20:19 ` ebotcazou at gcc dot gnu.org
` (2 subsequent siblings)
11 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-08-26 23:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |juhani.viherakoski at gmail
| |dot com
--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-08-26 23:51:17 UTC ---
*** Bug 54380 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug lto/45475] target use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2012-08-26 23:53 ` pinskia at gcc dot gnu.org
@ 2012-10-15 20:19 ` ebotcazou at gcc dot gnu.org
2012-10-17 9:34 ` [Bug target/45475] target attribute " rguenth at gcc dot gnu.org
2014-09-26 17:59 ` andi-gcc at firstfloor dot org
11 siblings, 0 replies; 17+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-10-15 20:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |j-frankish at slb dot com
--- Comment #15 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-10-15 20:18:45 UTC ---
*** Bug 54911 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/45475] target attribute use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2012-10-15 20:19 ` ebotcazou at gcc dot gnu.org
@ 2012-10-17 9:34 ` rguenth at gcc dot gnu.org
2014-09-26 17:59 ` andi-gcc at firstfloor dot org
11 siblings, 0 replies; 17+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-17 9:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |lto
Target| |i?86-*-*
Status|REOPENED |NEW
Component|lto |target
Summary|target use in libcpp breaks |target attribute use in
|LTO bootstrap |libcpp breaks LTO bootstrap
--- Comment #16 from Richard Biener <rguenth at gcc dot gnu.org> 2012-10-17 09:34:14 UTC ---
The attribute handling side is missing from the LTO frontend, but I
wonder why handling the middle-end piece is not enough for it to work ...
The target / optimize attributes seem to be designed in a weird way ...
(ix86_valid_target_attribute_p does work besides checking whether
the attribute is "valid"). I'm sure that's not how it was intended to
work so I am calling this a target bug. This work should be done
in the ix86_set_current_function hook.
^ permalink raw reply [flat|nested] 17+ messages in thread
* [Bug target/45475] target attribute use in libcpp breaks LTO bootstrap
[not found] <bug-45475-4@http.gcc.gnu.org/bugzilla/>
` (10 preceding siblings ...)
2012-10-17 9:34 ` [Bug target/45475] target attribute " rguenth at gcc dot gnu.org
@ 2014-09-26 17:59 ` andi-gcc at firstfloor dot org
11 siblings, 0 replies; 17+ messages in thread
From: andi-gcc at firstfloor dot org @ 2014-09-26 17:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45475
Andi Kleen <andi-gcc at firstfloor dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #17 from Andi Kleen <andi-gcc at firstfloor dot org> ---
LTO bootstrap works, so I think we can close this now.
^ permalink raw reply [flat|nested] 17+ messages in thread