public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67467] New: Using "-Wall -Wextra -Wno-unused-dummy-argument" causes error
@ 2015-09-06  9:57 exodus6395 at gmail dot com
  2015-09-06 10:05 ` [Bug fortran/67467] [5 Regression] " dominiq at lps dot ens.fr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: exodus6395 at gmail dot com @ 2015-09-06  9:57 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67467
           Summary: Using "-Wall -Wextra -Wno-unused-dummy-argument"
                    causes error
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: exodus6395 at gmail dot com
  Target Milestone: ---

Created attachment 36296
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36296&action=edit
Simple test case with an unused argument

Compiling a FORTRAN file which has an unused dummy argument using "-Wall
-Wextra -Wno-unused-dummy-argument" causes a compiler error using gfortran
5.2.0.

Using just two of the three options (-Wall, -Wextra and
-Wno-unused-dummy-argument) causes the expected behaviour i.e. the code
compiles with or without the warning as appropriate. However, using all three
of them together causes the compilation to fail. Removing the code that
generates the warning (eg using the variable a in the example code) lets it
compile as normal.

Example command line and output:

[exodus@laptop-acer test-fortran]$ gfortran -c -o fortran.o -v -save-temps
-Wall -Wextra -Wno-unused-dummy-argument unused-dummy-argument.f90 
Using built-in specs.
COLLECT_GCC=gfortran
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc-5.2.0/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-lto --enable-plugin
--enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --disable-multilib --disable-werror
--enable-checking=release --with-default-libstdcxx-abi=gcc4-compatible
Thread model: posix
gcc version 5.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-c' '-o' 'fortran.o' '-v' '-save-temps' '-Wall' '-Wextra'
'-Wno-unused-dummy-argument' '-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/f951 fortran.f90 -quiet -dumpbase
fortran.f90 -mtune=generic -march=x86-64 -auxbase-strip fortran.o -Wall -Wextra
-Wno-unused-dummy-argument -version -fintrinsic-modules-path
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/finclude -o fortran.s
GNU Fortran (GCC) version 5.2.0 (x86_64-unknown-linux-gnu)
        compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version
3.1.3-p4, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran2008 (GCC) version 5.2.0 (x86_64-unknown-linux-gnu)
        compiled by GNU C version 5.2.0, GMP version 6.0.0, MPFR version
3.1.3-p4, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
‘
fortran.f90:7:0:

   END FUNCTION
 ^
in pp_format, at pretty-print.c:614
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
>From gcc-bugs-return-496463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Sep 06 09:59:14 2015
Return-Path: <gcc-bugs-return-496463-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 87404 invoked by alias); 6 Sep 2015 09:59:13 -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 87377 invoked by uid 48); 6 Sep 2015 09:59:09 -0000
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/66910] allocatable character in derived type gives segfault
Date: Sun, 06 Sep 2015 09:59: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: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dominiq at lps dot ens.fr
X-Bugzilla-Status: NEW
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-66910-4-SzaGtZqvhI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66910-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66910-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-09/txt/msg00441.txt.bz2
Content-length: 662

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-06
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 4.8 up to trunk (6.0).

> It looks similar to:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?ide841

The segmentation fault is still there even if pr65841 is fixed.


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

* [Bug fortran/67467] [5 Regression] Using "-Wall -Wextra -Wno-unused-dummy-argument" causes error
  2015-09-06  9:57 [Bug fortran/67467] New: Using "-Wall -Wextra -Wno-unused-dummy-argument" causes error exodus6395 at gmail dot com
@ 2015-09-06 10:05 ` dominiq at lps dot ens.fr
  2015-09-06 16:22 ` dominiq at lps dot ens.fr
  2015-09-07 11:27 ` manu at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-09-06 10:05 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-06
            Summary|Using "-Wall -Wextra        |[5 Regression] Using "-Wall
                   |-Wno-unused-dummy-argument" |-Wextra
                   |causes error                |-Wno-unused-dummy-argument"
                   |                            |causes error
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
ICE confirmed for 5.2. It is fixed on trunk (6.0), and 4.9 gives

pr67467.f90:4:0: warning: unused parameter 'a' [-Wunused-parameter]
   INTEGER FUNCTION test( a )

IIRC there was some changes recently around 'unused-parameter' (parameter does
not have the same meaning in C and Fortran).


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

* [Bug fortran/67467] [5 Regression] Using "-Wall -Wextra -Wno-unused-dummy-argument" causes error
  2015-09-06  9:57 [Bug fortran/67467] New: Using "-Wall -Wextra -Wno-unused-dummy-argument" causes error exodus6395 at gmail dot com
  2015-09-06 10:05 ` [Bug fortran/67467] [5 Regression] " dominiq at lps dot ens.fr
@ 2015-09-06 16:22 ` dominiq at lps dot ens.fr
  2015-09-07 11:27 ` manu at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-09-06 16:22 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
I get the ICE with revision r225099 (2015-06-27), but not with r225925
(2015-07-17), likely r225135 for pr66605. Could r225135 be back ported to 5.3?


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

* [Bug fortran/67467] [5 Regression] Using "-Wall -Wextra -Wno-unused-dummy-argument" causes error
  2015-09-06  9:57 [Bug fortran/67467] New: Using "-Wall -Wextra -Wno-unused-dummy-argument" causes error exodus6395 at gmail dot com
  2015-09-06 10:05 ` [Bug fortran/67467] [5 Regression] " dominiq at lps dot ens.fr
  2015-09-06 16:22 ` dominiq at lps dot ens.fr
@ 2015-09-07 11:27 ` manu at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: manu at gcc dot gnu.org @ 2015-09-07 11:27 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 7177 bytes --]

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

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

--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66605#c16 (if the backport is
not acceptable, there is still a less nicer, Fortran-only fix)

You'll have to ask the release managers probably.

*** This bug has been marked as a duplicate of bug 66605 ***
>From gcc-bugs-return-496516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 07 11:27:12 2015
Return-Path: <gcc-bugs-return-496516-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 116728 invoked by alias); 7 Sep 2015 11:27:12 -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 116674 invoked by uid 48); 7 Sep 2015 11:27:08 -0000
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/66605] -Wunused-parameter causes internal compiler error with gfortran 5.1.0
Date: Mon, 07 Sep 2015 11:27: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: 5.1.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: manu at gcc dot gnu.org
X-Bugzilla-Status: NEW
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: cc
Message-ID: <bug-66605-4-PKlb1SylgF@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66605-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66605-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-09/txt/msg00494.txt.bz2
Content-length: 485

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

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |exodus6395 at gmail dot com

--- Comment #17 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
*** Bug 67467 has been marked as a duplicate of this bug. ***
>From gcc-bugs-return-496517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 07 11:47:37 2015
Return-Path: <gcc-bugs-return-496517-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 80646 invoked by alias); 7 Sep 2015 11:47:37 -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 80608 invoked by uid 48); 7 Sep 2015 11:47:33 -0000
From: "rmansfield at qnx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/67477] New: ICE in cselib_record_set, at cselib.c:2388
Date: Mon, 07 Sep 2015 11:47:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rmansfield at qnx dot com
X-Bugzilla-Status: UNCONFIRMED
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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget attachments.created
Message-ID: <bug-67477-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-09/txt/msg00495.txt.bz2
Content-length: 2279

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

            Bug ID: 67477
           Summary: ICE in cselib_record_set, at cselib.c:2388
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rmansfield at qnx dot com
  Target Milestone: ---
            Target: arm-unknown-linux-gnueabi

Created attachment 36298
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id6298&actioníit
reduced preprocessed source

$ ./xgcc -v
Using built-in specs.
COLLECT_GCC=./xgcc
Target: arm-unknown-linux-gnueabi
Configured with: ../configure --target=arm-unknown-linux-gnueabi
--prefix=/home/rmansfield/x-tools/arm-unknown-linux-gnueabi
--with-sysroot=/home/rmansfield/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi//sys-root
--disable-multilib
--with-local-prefix=/home/rmansfield/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/sys-root
--disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99
--enable-long-long --enable-target-optspace
target_alias=arm-unknown-linux-gnueabi --enable-languages=c++ --disable-libssp
--enable-checking
Thread model: posix
gcc version 6.0.0 20150907 (experimental) [trunk revision 227519] (GCC)

$ ./xgcc -B. ~/ice.i -O3 -fstack-protector-strong -mfpu=neon -mfloat-abi=softfp
 -march=armv7-a -mfloat-abi=softfp -c
/home/rmansfield/ice.i: In function 'swblit_1d_NV12_2_B8G8R8X8':
/home/rmansfield/ice.i:69:1: internal compiler error: in cselib_record_set, at
cselib.c:2388
 }
 ^
0x6df43f cselib_record_set
        ../../gcc/cselib.c:2388
0x6df43f cselib_record_sets
        ../../gcc/cselib.c:2605
0x6e0137 cselib_process_insn(rtx_insn*)
        ../../gcc/cselib.c:2678
0x99ef08 reload_cse_regs_1
        ../../gcc/postreload.c:235
0x99f23b reload_cse_regs
        ../../gcc/postreload.c:81
0x99f23b execute
        ../../gcc/postreload.c:2350
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Started happening after r227382

https://gcc.gnu.org/viewcvs/gcc?view=revision&revision"7382


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

end of thread, other threads:[~2015-09-07 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-06  9:57 [Bug fortran/67467] New: Using "-Wall -Wextra -Wno-unused-dummy-argument" causes error exodus6395 at gmail dot com
2015-09-06 10:05 ` [Bug fortran/67467] [5 Regression] " dominiq at lps dot ens.fr
2015-09-06 16:22 ` dominiq at lps dot ens.fr
2015-09-07 11:27 ` manu 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).