public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
[not found] <bug-45751-4@http.gcc.gnu.org/bugzilla/>
@ 2010-09-24 14:19 ` iains at gcc dot gnu.org
2010-09-24 15:02 ` iains at gcc dot gnu.org
1 sibling, 0 replies; 12+ messages in thread
From: iains at gcc dot gnu.org @ 2010-09-24 14:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
--- Comment #10 from Iain Sandoe <iains at gcc dot gnu.org> 2010-09-24 14:06:40 UTC ---
Author: iains
Date: Fri Sep 24 14:06:35 2010
New Revision: 164592
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164592
Log:
PR bootstrap/45751
* gcc/config/darwin-driver.c (darwin_default_min_version):
Adjust size passed to memcpy in two places.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/darwin-driver.c
--
Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
[not found] <bug-45751-4@http.gcc.gnu.org/bugzilla/>
2010-09-24 14:19 ` [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault iains at gcc dot gnu.org
@ 2010-09-24 15:02 ` iains at gcc dot gnu.org
1 sibling, 0 replies; 12+ messages in thread
From: iains at gcc dot gnu.org @ 2010-09-24 15:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
Iain Sandoe <iains at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #11 from Iain Sandoe <iains at gcc dot gnu.org> 2010-09-24 14:57:06 UTC ---
fixed
--
Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
` (8 preceding siblings ...)
2010-09-23 15:28 ` pinskia at gcc dot gnu dot org
@ 2010-09-23 15:30 ` dominiq at lps dot ens dot fr
9 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-09-23 15:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from dominiq at lps dot ens dot fr 2010-09-23 15:30 -------
Could someone commit the patch in comment #7. It cannot make the matter worse
than it is without it.
TIA
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
` (7 preceding siblings ...)
2010-09-23 14:14 ` dominiq at lps dot ens dot fr
@ 2010-09-23 15:28 ` pinskia at gcc dot gnu dot org
2010-09-23 15:30 ` dominiq at lps dot ens dot fr
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-09-23 15:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2010-09-23 15:28 -------
>Side question: what could be the meaning of "sizeof (struct cl_decoded_option
*)"?
The size of the pointer (which can be useful sometimes but not in this case).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |build, ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2010-09-23 15:28:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
` (6 preceding siblings ...)
2010-09-23 12:02 ` dominiq at lps dot ens dot fr
@ 2010-09-23 14:14 ` dominiq at lps dot ens dot fr
2010-09-23 15:28 ` pinskia at gcc dot gnu dot org
2010-09-23 15:30 ` dominiq at lps dot ens dot fr
9 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-09-23 14:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from dominiq at lps dot ens dot fr 2010-09-23 14:14 -------
Bootstrapped revision 164560 on x86_64-apple-darwin10.4.0 with the following
patch:
--- ../_clean/gcc/config/darwin-driver.c 2010-09-22 22:38:53.000000000
+0200
+++ gcc/config/darwin-driver.c 2010-09-23 14:13:53.000000000 +0200
@@ -76,7 +76,7 @@ darwin_default_min_version (unsigned int
generate_option (OPT_mmacosx_version_min_, macosx_deployment_target,
1, CL_DRIVER, &(*decoded_options)[1]);
memcpy (*decoded_options + 2, argv + 1,
- (argc - 1) * sizeof (struct cl_decoded_option *));
+ (argc - 1) * sizeof (struct cl_decoded_option));
return;
}
}
@@ -128,7 +128,7 @@ darwin_default_min_version (unsigned int
generate_option (OPT_mmacosx_version_min_, new_flag,
1, CL_DRIVER, &(*decoded_options)[1]);
memcpy (*decoded_options + 2, argv + 1,
- (argc - 1) * sizeof (struct cl_decoded_option *));
+ (argc - 1) * sizeof (struct cl_decoded_option));
return;
parse_failed:
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
` (5 preceding siblings ...)
2010-09-23 10:35 ` iains at gcc dot gnu dot org
@ 2010-09-23 12:02 ` dominiq at lps dot ens dot fr
2010-09-23 14:14 ` dominiq at lps dot ens dot fr
` (2 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-09-23 12:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from dominiq at lps dot ens dot fr 2010-09-23 12:02 -------
> if the array was intended to be an array of structs then this fixes: ...
Currently at stage 2 for revision 164490 on powerpc-apple-darwin9 with the
patch in comment #5. Thanks.
Side question: what could be the meaning of "sizeof (struct cl_decoded_option
*)"?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
` (4 preceding siblings ...)
2010-09-23 9:34 ` iains at gcc dot gnu dot org
@ 2010-09-23 10:35 ` iains at gcc dot gnu dot org
2010-09-23 12:02 ` dominiq at lps dot ens dot fr
` (3 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-09-23 10:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from iains at gcc dot gnu dot org 2010-09-23 10:35 -------
if the array was intended to be an array of structs then this fixes:
Index: gcc/config/darwin-driver.c
===================================================================
--- gcc/config/darwin-driver.c (revision 164549)
+++ gcc/config/darwin-driver.c (working copy)
@@ -128,7 +128,7 @@ darwin_default_min_version (unsigned int *decoded_
generate_option (OPT_mmacosx_version_min_, new_flag,
1, CL_DRIVER, &(*decoded_options)[1]);
memcpy (*decoded_options + 2, argv + 1,
- (argc - 1) * sizeof (struct cl_decoded_option *));
+ (argc - 1) * sizeof (struct cl_decoded_option));
return;
parse_failed:
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
` (3 preceding siblings ...)
2010-09-23 9:31 ` rguenth at gcc dot gnu dot org
@ 2010-09-23 9:34 ` iains at gcc dot gnu dot org
2010-09-23 10:35 ` iains at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: iains at gcc dot gnu dot org @ 2010-09-23 9:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from iains at gcc dot gnu dot org 2010-09-23 09:34 -------
this appears to be to do with the driver construction of a default
macosx-version-min.
./gcc/xgcc -Bgcc -dumpspecs => bus error
./gcc/xgcc -Bgcc -dumpspecs -mmacosx-version-min=10.5 => completes normally.
Initial debugging suggests that the constructed option is being flagged as
error=4 (wrong language)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
` (2 preceding siblings ...)
2010-09-23 8:39 ` dominiq at lps dot ens dot fr
@ 2010-09-23 9:31 ` rguenth at gcc dot gnu dot org
2010-09-23 9:34 ` iains at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-23 9:31 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
2010-09-22 22:30 ` [Bug bootstrap/45751] " dominiq at lps dot ens dot fr
2010-09-23 0:12 ` howarth at nitro dot med dot uc dot edu
@ 2010-09-23 8:39 ` dominiq at lps dot ens dot fr
2010-09-23 9:31 ` rguenth at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-09-23 8:39 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 824 bytes --]
------- Comment #3 from dominiq at lps dot ens dot fr 2010-09-23 08:39 -------
On powerpc-apple-darwin9 I get
[karma] gcc/darwin_buildw% gcc/xgcc -
Segmentation fault
[karma] gcc/darwin_buildw% gcc/xgcc -v
xgcc: warning:
xgcc(49989) malloc: *** mmap(size=3638091776) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
xgcc: out of memory allocating 3638090932 bytes after a total of 0 bytes
--
dominiq at lps dot ens dot fr changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |iains at gcc dot gnu dot org
Severity|normal |blocker
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
2010-09-22 22:30 ` [Bug bootstrap/45751] " dominiq at lps dot ens dot fr
@ 2010-09-23 0:12 ` howarth at nitro dot med dot uc dot edu
2010-09-23 8:39 ` dominiq at lps dot ens dot fr
` (7 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2010-09-23 0:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from howarth at nitro dot med dot uc dot edu 2010-09-23 00:11 -------
Caused by...
Author: jsm28
Date: Wed Sep 22 20:19:39 2010
New Revision: 164532
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=164532
Log:
* opts-common.c (prune_options): Make static. Work with decoded
options.
(decode_cmdline_options_to_array): Call prune_options. Don't
resize option array here.
* opts.h (prune_options): Remove prototype.
* gcc.c (process_command): Take decoded options; don't call
decode_cmdline_options_to_array here. Use decoded options for
argv[0].
(main): Call decode_cmdline_options_to_array here instead of
prune_options. Update call to process_command.
* config/darwin-driver.c: Include opts.h.
(darwin_default_min_version): Work with decoded options. Don't
handle -b or -V here.
* config/darwin.h (darwin_default_min_version): Update prototype.
(GCC_DRIVER_HOST_INITIALIZATION): Update call to
darwin_default_min_version.
* config/i386/cygwin.h (mingw_scan): Update prototype.
(GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
* config/i386/cygwin1.c: Include opts.h.
(mingw_scan): Work with decoded options.
* config/i386/t-cygwin (cygwin1.o): Update dependencies.
* config/t-darwin (darwin-driver.o): Update dependencies.
According to original patch this was never tested directly on darwin...
http://gcc.gnu.org/ml/gcc-patches/2010-09/msg01007.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
@ 2010-09-22 22:30 ` dominiq at lps dot ens dot fr
2010-09-23 0:12 ` howarth at nitro dot med dot uc dot edu
` (8 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-09-22 22:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dominiq at lps dot ens dot fr 2010-09-22 22:30 -------
Same thing on powerpc-apple-darwin9.
--
dominiq at lps dot ens dot fr changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|x86_64-apple-darwin10.4.0 |*-apple-darwin*
GCC host triplet|x86_64-apple-darwin10.4.0 |*-apple-darwin*
GCC target triplet|x86_64-apple-darwin10.4.0 |*-apple-darwin*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45751
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-09-24 14:57 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-45751-4@http.gcc.gnu.org/bugzilla/>
2010-09-24 14:19 ` [Bug bootstrap/45751] [4.6 Regression] Bootstrap failure: at stage 1 xgcc segfault iains at gcc dot gnu.org
2010-09-24 15:02 ` iains at gcc dot gnu.org
2010-09-22 22:17 [Bug bootstrap/45751] New: " dominiq at lps dot ens dot fr
2010-09-22 22:30 ` [Bug bootstrap/45751] " dominiq at lps dot ens dot fr
2010-09-23 0:12 ` howarth at nitro dot med dot uc dot edu
2010-09-23 8:39 ` dominiq at lps dot ens dot fr
2010-09-23 9:31 ` rguenth at gcc dot gnu dot org
2010-09-23 9:34 ` iains at gcc dot gnu dot org
2010-09-23 10:35 ` iains at gcc dot gnu dot org
2010-09-23 12:02 ` dominiq at lps dot ens dot fr
2010-09-23 14:14 ` dominiq at lps dot ens dot fr
2010-09-23 15:28 ` pinskia at gcc dot gnu dot org
2010-09-23 15:30 ` dominiq at lps dot ens dot fr
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).