This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/41340] [4.5 Regression] G++ produces different code with and without -g option
- From: "davek at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2009 09:20:21 -0000
- Subject: [Bug debug/41340] [4.5 Regression] G++ produces different code with and without -g option
- References: <bug-41340-16926@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from davek at gcc dot gnu dot org 2009-09-19 09:20 -------
Unsurprisingly, adding -g0 to the build line results in an expr.o without the
undefined reference.
/gnu/gcc/obj.no.pr41357/./prev-gcc/xgcc -B/gnu/gcc/obj.no.pr41357/./prev-gcc/
-B/opt/gcc-tools/i686-pc-cygwin/bin/ -B/opt/gcc-tools/i686-pc-cygwin/bin/
-B/opt/gcc-tools/i686-pc-cygwin/lib/ -isystem
/opt/gcc-tools/i686-pc-cygwin/include -isystem
/opt/gcc-tools/i686-pc-cygwin/sys-include -c -g -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common
-DHAVE_CONFIG_H -I ../gcc -Ijava -I/gnu/gcc/gcc-unpatched/gcc
-I/gnu/gcc/gcc-unpatched/gcc/java -I/gnu/gcc/gcc-unpatched/gcc/../include
-I/gnu/gcc/gcc-unpatched/gcc/../libcpp/include -I/usr/include -I/usr/include
-I/gnu/gcc/gcc-unpatched/gcc/../libdecnumber
-I/gnu/gcc/gcc-unpatched/gcc/../libdecnumber/dpd -I../libdecnumber
/gnu/gcc/gcc-unpatched/gcc/java/expr.c -o java/expr.o --save-temps -g0
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41340