public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39142]  New: Compilation fails with specialised optimisations.
@ 2009-02-09 18:08 macdonellba+gcc at gmail dot com
  2009-02-09 18:10 ` [Bug c/39142] " paolo dot carlini at oracle dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: macdonellba+gcc at gmail dot com @ 2009-02-09 18:08 UTC (permalink / raw)
  To: gcc-bugs

Command line:

gcc -I../include -I. -O2 -mtune=generic -march=i686 -Wall -W -Wno-unused -O1
-fno-math-errno -fschedule-insns2 -fno-trapping-math -fno-strict-aliasing
-fwrapv -fmodulo-sched -freschedule-modulo-scheduled-loops -fomit-frame-pointer
-fPIC -fno-common -mieee-fp -DHAVE_CONFIG_H -D___GAMBCDIR="\"/usr\""
-D___GAMBCDIR_BIN="\"/usr/bin\"" -D___GAMBCDIR_INCLUDE="\"/usr/include\""
-D___GAMBCDIR_LIB="\"/usr/lib\"" -D___SYS_TYPE_CPU="\"i686\""
-D___SYS_TYPE_VENDOR="\"pc\"" -D___SYS_TYPE_OS="\"linux-gnu\"" -D___PRIMAL
-D___LIBRARY -v -save-temps -c _io.c


Output:

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --enable-threads=posix
--mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit
--disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu
--disable-libstdcxx-pch --with-tune=generic
Thread model: posix
gcc version 4.3.3 (GCC) 
COLLECT_GCC_OPTIONS='-I../include' '-I.' '-O2' '-mtune=generic' '-march=i686'
'-Wall' '-W' '-Wno-unused' '-O1' '-fno-math-errno' '-fschedule-insns2'
'-fno-trapping-math' '-fno-strict-aliasing' '-fwrapv' '-fmodulo-sched'
'-freschedule-modulo-scheduled-loops' '-fomit-frame-pointer' '-fPIC'
'-fno-common' '-mieee-fp' '-DHAVE_CONFIG_H' '-D___GAMBCDIR="/usr"'
'-D___GAMBCDIR_BIN="/usr/bin"' '-D___GAMBCDIR_INCLUDE="/usr/include"'
'-D___GAMBCDIR_LIB="/usr/lib"' '-D___SYS_TYPE_CPU="i686"'
'-D___SYS_TYPE_VENDOR="pc"' '-D___SYS_TYPE_OS="linux-gnu"' '-D___PRIMAL'
'-D___LIBRARY' '-v' '-save-temps' '-c'
 /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/cc1 -E -quiet -v -I../include -I.
-DHAVE_CONFIG_H -D___GAMBCDIR="/usr" -D___GAMBCDIR_BIN="/usr/bin"
-D___GAMBCDIR_INCLUDE="/usr/include" -D___GAMBCDIR_LIB="/usr/lib"
-D___SYS_TYPE_CPU="i686" -D___SYS_TYPE_VENDOR="pc" -D___SYS_TYPE_OS="linux-gnu"
-D___PRIMAL -D___LIBRARY _io.c -mtune=generic -march=i686 -mieee-fp -Wall -W
-Wno-unused -fno-math-errno -fschedule-insns2 -fno-trapping-math
-fno-strict-aliasing -fwrapv -fmodulo-sched -freschedule-modulo-scheduled-loops
-fomit-frame-pointer -fPIC -fno-common -O2 -O1 -fpch-preprocess -o _io.i
ignoring nonexistent directory
"/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 ../include
 .
 /usr/local/include
 /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include
 /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-I../include' '-I.' '-O2' '-mtune=generic' '-march=i686'
'-Wall' '-W' '-Wno-unused' '-O1' '-fno-math-errno' '-fschedule-insns2'
'-fno-trapping-math' '-fno-strict-aliasing' '-fwrapv' '-fmodulo-sched'
'-freschedule-modulo-scheduled-loops' '-fomit-frame-pointer' '-fPIC'
'-fno-common' '-mieee-fp' '-DHAVE_CONFIG_H' '-D___GAMBCDIR="/usr"'
'-D___GAMBCDIR_BIN="/usr/bin"' '-D___GAMBCDIR_INCLUDE="/usr/include"'
'-D___GAMBCDIR_LIB="/usr/lib"' '-D___SYS_TYPE_CPU="i686"'
'-D___SYS_TYPE_VENDOR="pc"' '-D___SYS_TYPE_OS="linux-gnu"' '-D___PRIMAL'
'-D___LIBRARY' '-v' '-save-temps' '-c'
 /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/cc1 -fpreprocessed _io.i -quiet -dumpbase
_io.c -mtune=generic -march=i686 -mieee-fp -auxbase _io -O2 -O1 -Wall -W
-Wno-unused -version -fno-math-errno -fschedule-insns2 -fno-trapping-math
-fno-strict-aliasing -fwrapv -fmodulo-sched -freschedule-modulo-scheduled-loops
-fomit-frame-pointer -fPIC -fno-common -o _io.s
GNU C (GCC) version 4.3.3 (i686-pc-linux-gnu)
        compiled by GNU C version 4.3.3, GMP version 4.2.4, MPFR version 2.3.2.
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64360
Compiler executable checksum: a9280a9b830968ecc06cd749b0fe5f7f
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: Compilation fails with specialised optimisations.
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: macdonellba+gcc at gmail dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39142


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/39142] Compilation fails with specialised optimisations.
  2009-02-09 18:08 [Bug c/39142] New: Compilation fails with specialised optimisations macdonellba+gcc at gmail dot com
@ 2009-02-09 18:10 ` paolo dot carlini at oracle dot com
  2009-02-09 18:13 ` macdonellba+gcc at gmail dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-02-09 18:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo dot carlini at oracle dot com  2009-02-09 18:10 -------
Please follow the bug-reporting instructions, in particular, please provide a
pre-processed reproducer:

  http://gcc.gnu.org/bugs.html


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39142


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/39142] Compilation fails with specialised optimisations.
  2009-02-09 18:08 [Bug c/39142] New: Compilation fails with specialised optimisations macdonellba+gcc at gmail dot com
  2009-02-09 18:10 ` [Bug c/39142] " paolo dot carlini at oracle dot com
@ 2009-02-09 18:13 ` macdonellba+gcc at gmail dot com
  2009-02-09 18:15 ` paolo dot carlini at oracle dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: macdonellba+gcc at gmail dot com @ 2009-02-09 18:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from macdonellba+gcc at gmail dot com  2009-02-09 18:13 -------
Paolo Carlini:
I was unable to attach the reproducer, as the bugzilla would not accept it due
to it's size. In the meantime, I have uploading it to
http://macdonellba.googlepages.com/_io.i .


-- 

macdonellba+gcc at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |macdonellba+gcc at gmail dot
                   |                            |com
             Status|WAITING                     |UNCONFIRMED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39142


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/39142] Compilation fails with specialised optimisations.
  2009-02-09 18:08 [Bug c/39142] New: Compilation fails with specialised optimisations macdonellba+gcc at gmail dot com
  2009-02-09 18:10 ` [Bug c/39142] " paolo dot carlini at oracle dot com
  2009-02-09 18:13 ` macdonellba+gcc at gmail dot com
@ 2009-02-09 18:15 ` paolo dot carlini at oracle dot com
  2009-02-09 22:54 ` macdonellba+gcc at gmail dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-02-09 18:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from paolo dot carlini at oracle dot com  2009-02-09 18:15 -------
Please reduce it to a manageable size. For example, try 'delta', if you don't
have other ways.


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
          Component|middle-end                  |c


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39142


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/39142] Compilation fails with specialised optimisations.
  2009-02-09 18:08 [Bug c/39142] New: Compilation fails with specialised optimisations macdonellba+gcc at gmail dot com
                   ` (2 preceding siblings ...)
  2009-02-09 18:15 ` paolo dot carlini at oracle dot com
@ 2009-02-09 22:54 ` macdonellba+gcc at gmail dot com
  2009-02-10  0:35 ` paolo dot carlini at oracle dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: macdonellba+gcc at gmail dot com @ 2009-02-09 22:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from macdonellba+gcc at gmail dot com  2009-02-09 22:54 -------
I'm not really sure that this is worth pursuing for me, since I'm a touch
uncertain whether I should expect to have problems with OOM (using over 800MB
of RAM once buffers are cleared) on an macro-laden 79KLOC generated C file,
albeit with most of the preprocessor directives expanding fairly flatly. If
not, I can find another machine to attack the problem of shrinking it with
delta, because it's not exactly a task that will be completed within a day.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39142


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c/39142] Compilation fails with specialised optimisations.
  2009-02-09 18:08 [Bug c/39142] New: Compilation fails with specialised optimisations macdonellba+gcc at gmail dot com
                   ` (3 preceding siblings ...)
  2009-02-09 22:54 ` macdonellba+gcc at gmail dot com
@ 2009-02-10  0:35 ` paolo dot carlini at oracle dot com
  2009-02-10 10:12 ` [Bug middle-end/39142] " rguenth at gcc dot gnu dot org
  2009-02-10 10:21 ` paolo dot carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-02-10  0:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from paolo dot carlini at oracle dot com  2009-02-10 00:35 -------
Take your time. Please, understand that if a PR is not filed in the proper
form, the chances that a knowledgeable person seriously look into it, sharply
decreases. You can probably find this also useful:

  http://gcc.gnu.org/wiki/A_guide_to_testcase_reduction


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39142


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/39142] Compilation fails with specialised optimisations.
  2009-02-09 18:08 [Bug c/39142] New: Compilation fails with specialised optimisations macdonellba+gcc at gmail dot com
                   ` (4 preceding siblings ...)
  2009-02-10  0:35 ` paolo dot carlini at oracle dot com
@ 2009-02-10 10:12 ` rguenth at gcc dot gnu dot org
  2009-02-10 10:21 ` paolo dot carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-10 10:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-02-10 10:12 -------
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Which means that your kernel killed the compiler, likely due to memory
usage issues.  On x86_64 the testcase uses 1.4GB.

Note that the issue is likely the large static initializer of ___lbl_tbl.
See PRs 14179 and 12245.  Removing that initializer the file needs 67MB to
build.

*** This bug has been marked as a duplicate of 12245 ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39142


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug middle-end/39142] Compilation fails with specialised optimisations.
  2009-02-09 18:08 [Bug c/39142] New: Compilation fails with specialised optimisations macdonellba+gcc at gmail dot com
                   ` (5 preceding siblings ...)
  2009-02-10 10:12 ` [Bug middle-end/39142] " rguenth at gcc dot gnu dot org
@ 2009-02-10 10:21 ` paolo dot carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-02-10 10:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from paolo dot carlini at oracle dot com  2009-02-10 10:21 -------
Thanks Richard, noticed the Killed too late...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39142


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-02-10 10:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-09 18:08 [Bug c/39142] New: Compilation fails with specialised optimisations macdonellba+gcc at gmail dot com
2009-02-09 18:10 ` [Bug c/39142] " paolo dot carlini at oracle dot com
2009-02-09 18:13 ` macdonellba+gcc at gmail dot com
2009-02-09 18:15 ` paolo dot carlini at oracle dot com
2009-02-09 22:54 ` macdonellba+gcc at gmail dot com
2009-02-10  0:35 ` paolo dot carlini at oracle dot com
2009-02-10 10:12 ` [Bug middle-end/39142] " rguenth at gcc dot gnu dot org
2009-02-10 10:21 ` paolo dot carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).