public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/59339] New: vtable_verify objects still trying to be linked on Android
@ 2013-11-29 10:28 laguest at archeia dot com
  2013-11-29 10:29 ` [Bug libgcc/59339] " laguest at archeia dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: laguest at archeia dot com @ 2013-11-29 10:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59339
           Summary: vtable_verify objects still trying to be linked on
                    Android
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: laguest at archeia dot com

Created attachment 31325
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31325&action=edit
Original make -j4 log

When attempting to build gcc svn trunk arm-linux-androideabi target, it still
looking for vtv_*.o even though it's disabled, if enabling the other libraries
I have disabled, it does so there too.

[code]
make[4]: Entering directory
`/home/laguest/src/mine/tinyada-new/build/android/arm/gcc/arm-linux-androideabi/armv7-a/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
# Early copyback; see "all" above for the rationale.  The
# early copy is necessary so that the gcc -B options find
# the right startup files when linking shared libgcc.
/bin/sh ../../../../../../../source/gcc-trunk/libgcc/../mkinstalldirs
../../.././gcc/armv7-a
parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o vtv_start.o
vtv_end.o vtv_start_preinit.o vtv_end_preinit.o";                              
       \
        for file in $parts; do                                  \
          rm -f ../../.././gcc/armv7-a/$file;           \
          /usr/bin/install -c -m 644 $file ../../.././gcc/armv7-a/;     \
          case $file in                                         \
            *.a)                                                \
             
/home/laguest/opt/android-tinyada/arm-linux-androideabi/bin/ranlib
../../.././gcc/armv7-a/$file ;;        \
          esac;                                                 \
        done
/usr/bin/install: cannot stat `vtv_start.o': No such file or directory
/usr/bin/install: cannot stat `vtv_end.o': No such file or directory
/usr/bin/install: cannot stat `vtv_start_preinit.o': No such file or directory
/usr/bin/install: cannot stat `vtv_end_preinit.o': No such file or directory
dest=../../.././gcc/include/tmp$$-unwind.h; \
        cp unwind.h $dest; \
        chmod a+r $dest; \
        sh ../../../../../../../source/gcc-trunk/libgcc/../move-if-change $dest
../../.././gcc/include/unwind.h
[/code]

System: uname -a
Linux rogue 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux

The configure line:

CC=/opt/gcc-4.6-links/bin/gcc CXX=/opt/gcc-4.6-links/bin/g++
CP=/opt/gcc-4.6-links/bin/cpp ../../../../source/gcc-trunk/configure
--prefix=/home/laguest/opt/android-tinyada --target=arm-linux-androideabi
--host=x86_64-linux-gnu --build=x86_64-linux-gnu
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--with-float=soft --with-fpu=vfp --with-arch=armv5te --enable-multilib
--enable-threads --disable-shared --with-gnu-as --with-gnu-ld
--enable-languages=c,c++,ada --with-system-zlib --disable-libgomp
--without-libffi --without-libiconv-prefix --disable-libmudflap --disable-nls
--disable-libstdcxx-pch --disable-cloog-version-check
--disable-isl-version-check --with-gmp=/home/laguest/opt/android-tinyada
--with-mpfr=/home/laguest/opt/android-tinyada
--with-mpc=/home/laguest/opt/android-tinyada
--with-isl=/home/laguest/opt/android-tinyada
--with-cloog=/home/laguest/opt/android-tinyada --disable-libstdc__-v3
--disable-tls --disable-libitm  --enable-target-optspace
--enable-initfini-array
--with-sysroot=/home/laguest/opt/android-ndk-r9b/platforms/android-9/arch-arm
--with-python=/home/laguest/opt/android-ndk-r9b/prebuilt/linux-x86_64/bin/python-config
--enable-plugins --enable-eh-frame-hdr-for-static --disable-libsanitizer
--disable-libquadmath --disable-libssp --disable-libatomic 2>&1|tee
log.config.txt


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

* [Bug libgcc/59339] vtable_verify objects still trying to be linked on Android
  2013-11-29 10:28 [Bug libgcc/59339] New: vtable_verify objects still trying to be linked on Android laguest at archeia dot com
@ 2013-11-29 10:29 ` laguest at archeia dot com
  2013-11-29 10:33 ` laguest at archeia dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: laguest at archeia dot com @ 2013-11-29 10:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Luke A. Guest <laguest at archeia dot com> ---
Toolchain I'm using:

gcc version 4.6.3 (Debian 4.6.3-14)

This is the Ada enabled one.


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

* [Bug libgcc/59339] vtable_verify objects still trying to be linked on Android
  2013-11-29 10:28 [Bug libgcc/59339] New: vtable_verify objects still trying to be linked on Android laguest at archeia dot com
  2013-11-29 10:29 ` [Bug libgcc/59339] " laguest at archeia dot com
@ 2013-11-29 10:33 ` laguest at archeia dot com
  2014-03-06  8:57 ` [Bug libgcc/59339] vtable_verify objects still trying to be installed even when disabled ubizjak at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: laguest at archeia dot com @ 2013-11-29 10:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Luke A. Guest <laguest at archeia dot com> ---
I also don't think this should be adding the following the parts either:

parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o


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

* [Bug libgcc/59339] vtable_verify objects still trying to be installed even when disabled
  2013-11-29 10:28 [Bug libgcc/59339] New: vtable_verify objects still trying to be linked on Android laguest at archeia dot com
  2013-11-29 10:29 ` [Bug libgcc/59339] " laguest at archeia dot com
  2013-11-29 10:33 ` laguest at archeia dot com
@ 2014-03-06  8:57 ` ubizjak at gmail dot com
  2014-03-06 11:57 ` ro at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ubizjak at gmail dot com @ 2014-03-06  8:57 UTC (permalink / raw)
  To: gcc-bugs

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-03-06
   Target Milestone|---                         |4.9.0
            Summary|vtable_verify objects still |vtable_verify objects still
                   |trying to be linked on      |trying to be installed even
                   |Android                     |when disabled
     Ever confirmed|0                           |1

--- Comment #3 from Uroš Bizjak <ubizjak at gmail dot com> ---
I also see this on x86_64 linux build.

Although not a regression, I think that this build problem should be fixed
before 4.9 is released.
>From gcc-bugs-return-445580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 06 09:12:43 2014
Return-Path: <gcc-bugs-return-445580-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4887 invoked by alias); 6 Mar 2014 09:12:43 -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 4846 invoked by uid 48); 6 Mar 2014 09:12:40 -0000
From: "chengniansun at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/60442] New: No -Wparentheses warning for "if (a += b)"
Date: Thu, 06 Mar 2014 09:12:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: chengniansun at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
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
Message-ID: <bug-60442-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: 2014-03/txt/msg00449.txt.bz2
Content-length: 1020

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

            Bug ID: 60442
           Summary: No -Wparentheses warning for "if (a += b)"
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chengniansun at gmail dot com

The gcc trunk emits -Wparentheses warnings for "if(a = b)" and "if(a = a + b)",
but not "if(a += b)"


$: cat s.c 
int b;
int f(int a) {
  if (a = b) 
    return 0;
  else if (a = a + b)
    return 3;
  else if (a += b) /* <- no warning here*/ 
    return 2;
  else 
    return 1;
}
$: gcc-trunk -Wparentheses -c s.c 
s.c: In function ‘f’:
s.c:3:3: warning: suggest parentheses around assignment used as truth value
[-Wparentheses]
   if (a = b) 
   ^
s.c:5:3: warning: suggest parentheses around assignment used as truth value
[-Wparentheses]
   else if (a = a + b)
   ^
$:
>From gcc-bugs-return-445581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Mar 06 09:20:47 2014
Return-Path: <gcc-bugs-return-445581-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9254 invoked by alias); 6 Mar 2014 09:20:45 -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 9217 invoked by uid 48); 6 Mar 2014 09:20:40 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/60436] [4.8/4.9 Regression] C preprocessor segfaults on assembly file
Date: Thu, 06 Mar 2014 09:20:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: preprocessor
X-Bugzilla-Version: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.4
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60436-4-Ry8c8JZ2o6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60436-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60436-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: 2014-03/txt/msg00450.txt.bz2
Content-length: 1318

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`436

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
ASAN:SIGSEGV
================================================================= 669==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000018 (pc
0x0000023044cf sp 0x7fff99677740 bp 0x000080000001 T0)
    #0 0x23044ce in get_data_from_adhoc_loc(line_maps*, unsigned int)
../../gcc/libcpp/line-map.c:156
    #1 0x22c9240 in expand_location_1 ../../gcc/gcc/input.c:142
    #2 0x22cb68d in expand_location(unsigned int) ../../gcc/gcc/input.c:724
    #3 0x7a3cd9 in scan_translation_unit
../../gcc/gcc/c-family/c-ppoutput.c:214
    #4 0x7a3cd9 in preprocess_file(cpp_reader*)
../../gcc/gcc/c-family/c-ppoutput.c:101
    #5 0x7a05df in c_common_init() ../../gcc/gcc/c-family/c-opts.c:1040
    #6 0x68bccd in c_objc_common_init() ../../gcc/gcc/c/c-objc-common.c:65
    #7 0x1251227 in lang_dependent_init ../../gcc/gcc/toplev.c:1712
    #8 0x1251227 in do_compile ../../gcc/gcc/toplev.c:1900
    #9 0x1251227 in toplev_main(int, char**) ../../gcc/gcc/toplev.c:1990
    #10 0x7f051b6cafaf in __libc_start_main (/lib/libc.so.6+0x1ffaf)
    #11 0x5beb60
(/var/tmp/gcc_sani/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/cc1+0x5beb60)

AddressSanitizer can not provide additional info.


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

* [Bug libgcc/59339] vtable_verify objects still trying to be installed even when disabled
  2013-11-29 10:28 [Bug libgcc/59339] New: vtable_verify objects still trying to be linked on Android laguest at archeia dot com
                   ` (2 preceding siblings ...)
  2014-03-06  8:57 ` [Bug libgcc/59339] vtable_verify objects still trying to be installed even when disabled ubizjak at gmail dot com
@ 2014-03-06 11:57 ` ro at gcc dot gnu.org
  2014-03-06 12:24 ` ro at gcc dot gnu.org
  2014-03-06 12:26 ` ro at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2014-03-06 11:57 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2014-03/msg00278.htm
                   |                            |l
                 CC|                            |ro at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |ro at gcc dot gnu.org

--- Comment #4 from Rainer Orth <ro at gcc dot gnu.org> ---
Patch submitted.


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

* [Bug libgcc/59339] vtable_verify objects still trying to be installed even when disabled
  2013-11-29 10:28 [Bug libgcc/59339] New: vtable_verify objects still trying to be linked on Android laguest at archeia dot com
                   ` (3 preceding siblings ...)
  2014-03-06 11:57 ` ro at gcc dot gnu.org
@ 2014-03-06 12:24 ` ro at gcc dot gnu.org
  2014-03-06 12:26 ` ro at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2014-03-06 12:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Rainer Orth <ro at gcc dot gnu.org> ---
Author: ro
Date: Thu Mar  6 12:24:11 2014
New Revision: 208381

URL: http://gcc.gnu.org/viewcvs?rev=208381&root=gcc&view=rev
Log:
Don't install vtv_*.o unless --enable-vtable-verify (PR libgcc/59339)

    PR libgcc/59339
    * config.host (*-*-linux*, frv-*-*linux*, *-*-kfreebsd*-gnu)
    (*-*-knetbsd*-gnu, *-*-gnu*, *-*-kopensolaris*-gnu): Only add
    vtv_*.o to extra_parts if enable_vtable_verify.

Modified:
    trunk/libgcc/ChangeLog
    trunk/libgcc/config.host


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

* [Bug libgcc/59339] vtable_verify objects still trying to be installed even when disabled
  2013-11-29 10:28 [Bug libgcc/59339] New: vtable_verify objects still trying to be linked on Android laguest at archeia dot com
                   ` (4 preceding siblings ...)
  2014-03-06 12:24 ` ro at gcc dot gnu.org
@ 2014-03-06 12:26 ` ro at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ro at gcc dot gnu.org @ 2014-03-06 12:26 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Rainer Orth <ro at gcc dot gnu.org> ---
Fixed for 4.9.0.


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

end of thread, other threads:[~2014-03-06 12:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-29 10:28 [Bug libgcc/59339] New: vtable_verify objects still trying to be linked on Android laguest at archeia dot com
2013-11-29 10:29 ` [Bug libgcc/59339] " laguest at archeia dot com
2013-11-29 10:33 ` laguest at archeia dot com
2014-03-06  8:57 ` [Bug libgcc/59339] vtable_verify objects still trying to be installed even when disabled ubizjak at gmail dot com
2014-03-06 11:57 ` ro at gcc dot gnu.org
2014-03-06 12:24 ` ro at gcc dot gnu.org
2014-03-06 12:26 ` ro 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).