public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/67907] New: regression: internal compiler error: Segmentation fault
@ 2015-10-09 13:27 tropikhajma at gmail dot com
  2015-10-12  7:56 ` [Bug c/67907] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tropikhajma at gmail dot com @ 2015-10-09 13:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67907

            Bug ID: 67907
           Summary: regression: internal compiler error: Segmentation
                    fault
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tropikhajma at gmail dot com
  Target Milestone: ---

Created attachment 36470
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36470&action=edit
preprocessed source

cc1 crashes when building a piece of android.
It only crashes with -On specified, it passes when without optimization.
Also any previous version of gcc in the system (4.8.4, 4.7.4) does not exhibit
this problem.

This is on an uptodate Debian Jessie, amd64

hajma@chrastavec:~/android/system-ics$ gcc --version
gcc (Debian 4.9.2-10) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

hajma@chrastavec:~/android/system-ics$ /usr/lib/gcc/x86_64-linux-gnu/4.9/cc1  
/tmp/a.i   -O1
 __bswap_32 __bswap_64 gnu_dev_major gnu_dev_minor gnu_dev_makedev stat lstat
fstat fstatat mknod mknodat __strcspn_c1 __strcspn_c2 __strcspn_c3 __strspn_c1
__strspn_c2 __strspn_c3 __strpbrk_c2 __strpbrk_c3 __strtok_r_1c __strsep_1c
__strsep_2c __strsep_3c atoi atol atoll bsearch atof vprintf getchar
fgetc_unlocked getc_unlocked getchar_unlocked putchar fputc_unlocked
putc_unlocked putchar_unlocked feof_unlocked ferror_unlocked tolower toupper
__cmsg_nxthdr usage print_cmdline grow_config is_defined_config define_config
clear_config use_config parse_config_file strrcmp do_config_file parse_dep_file
print_deps traps main
Analyzing compilation unit
Performing interprocedural optimizations
 <*free_lang_data> <visibility> <early_local_cleanups> <*free_inline_summary>
<whole-program> <profile_estimate> <inline> <pure-const> <static-var>Assembling
functions:
 define_config
/home/hajma/android/system-ics/kernel/semc/msm7x30/scripts/basic/fixdep.c: In
function ‘define_config’:
/home/hajma/android/system-ics/kernel/semc/msm7x30/scripts/basic/fixdep.c:188:1:
internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
>From gcc-bugs-return-499112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 09 13:28:30 2015
Return-Path: <gcc-bugs-return-499112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 109292 invoked by alias); 9 Oct 2015 13:28:30 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 109253 invoked by uid 48); 9 Oct 2015 13:28:27 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/53867] Probably a bogus warning on types
Date: Fri, 09 Oct 2015 13:28:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.7.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: minor
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: WAITING
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-53867-4-Z5yYGllltn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-53867-4@http.gcc.gnu.org/bugzilla/>
References: <bug-53867-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-10/txt/msg00667.txt.bz2
Content-length: 1287

https://gcc.gnu.org/bugzilla/show_bug.cgi?idS867

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-10-09
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Consider the following test:

module EnumKind
use, intrinsic :: iso_c_binding

  enum, bind(c)
    enumerator :: A
  end enum

  integer, parameter :: K = kind(a)

  type, bind(c) :: T
    integer(K) :: C
  end type T

  type, bind(c) :: Ti
    integer :: C
  end type Ti

  type, bind(c) :: Tc
    integer(c_int) :: C
  end type Tc

end module EnumKind

use EnumKind

type(T) :: tt
type(Ti) :: tti
type(Tc) :: ttc
print *, sizeof(tt%c)
print *, sizeof(tti%c)
print *, sizeof(ttc%c)
end

when compiled with the option -fdefault-integer-8 (see pr32957), the run time
output is

                    4
                    8
                    4

which shows that tti%c is not C interoperable. In a similar way I don't think
there is any guarantee that K is 4. IMO the warning make sense for both cases.


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

* [Bug c/67907] regression: internal compiler error: Segmentation fault
  2015-10-09 13:27 [Bug c/67907] New: regression: internal compiler error: Segmentation fault tropikhajma at gmail dot com
@ 2015-10-12  7:56 ` rguenth at gcc dot gnu.org
  2015-10-20  8:58 ` mpolacek at gcc dot gnu.org
  2015-10-20 12:20 ` doko at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-10-12  7:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67907

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |doko at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Works for me with stock 4.9.2 as well as 4.9 branch head.


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

* [Bug c/67907] regression: internal compiler error: Segmentation fault
  2015-10-09 13:27 [Bug c/67907] New: regression: internal compiler error: Segmentation fault tropikhajma at gmail dot com
  2015-10-12  7:56 ` [Bug c/67907] " rguenth at gcc dot gnu.org
@ 2015-10-20  8:58 ` mpolacek at gcc dot gnu.org
  2015-10-20 12:20 ` doko at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-10-20  8:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67907

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-10-20
                 CC|                            |mpolacek at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Can't reproduce either.


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

* [Bug c/67907] regression: internal compiler error: Segmentation fault
  2015-10-09 13:27 [Bug c/67907] New: regression: internal compiler error: Segmentation fault tropikhajma at gmail dot com
  2015-10-12  7:56 ` [Bug c/67907] " rguenth at gcc dot gnu.org
  2015-10-20  8:58 ` mpolacek at gcc dot gnu.org
@ 2015-10-20 12:20 ` doko at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: doko at gcc dot gnu.org @ 2015-10-20 12:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67907

Matthias Klose <doko at gcc dot gnu.org> changed:

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

--- Comment #3 from Matthias Klose <doko at gcc dot gnu.org> ---
works for me in Debian unstable, and stable (the latter using gcc version 4.9.2
(Debian 4.9.2-10)).


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

end of thread, other threads:[~2015-10-20 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-09 13:27 [Bug c/67907] New: regression: internal compiler error: Segmentation fault tropikhajma at gmail dot com
2015-10-12  7:56 ` [Bug c/67907] " rguenth at gcc dot gnu.org
2015-10-20  8:58 ` mpolacek at gcc dot gnu.org
2015-10-20 12:20 ` doko at gcc dot gnu.org

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).