public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/49448] New: gcc configure script wrongly detect TARGET_BIG_ENDIAN_DEFAULT
@ 2011-06-17 5:34 goughost at yahoo dot com.cn
2011-06-17 7:26 ` [Bug other/49448] " schwab@linux-m68k.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: goughost at yahoo dot com.cn @ 2011-06-17 5:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49448
Summary: gcc configure script wrongly detect
TARGET_BIG_ENDIAN_DEFAULT
Product: gcc
Version: 4.5.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: goughost@yahoo.com.cn
In the configure script "gcc/config.gcc", around line 733:
arm*-*-linux*) # ARM GNU/Linux with ELF
tm_file="dbxelf.h elfos.h linux.h glibc-stdint.h arm/elf.h
arm/linux-gas.h arm/linux-elf.h"
case $target in
arm*b-*)
tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
;;
esac
tmake_file="${tmake_file} t-linux arm/t-arm"
If $target have the form "arm-tab-linux-gnu", this script will enable
big-endian defaults. But the resulting gcc will, by default, generate
little-endian object files, and pass some big-endian argument to linker.
This might be a common problem in scripts. Should the use of "*" be restricted,
or warned in some important scripts?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/49448] gcc configure script wrongly detect TARGET_BIG_ENDIAN_DEFAULT
2011-06-17 5:34 [Bug other/49448] New: gcc configure script wrongly detect TARGET_BIG_ENDIAN_DEFAULT goughost at yahoo dot com.cn
@ 2011-06-17 7:26 ` schwab@linux-m68k.org
2012-01-28 20:04 ` [Bug target/49448] arm-tab-linux-gnu-eabi enableds big endian when it should not pinskia at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: schwab@linux-m68k.org @ 2011-06-17 7:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49448
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2011-06-17 07:26:12 UTC ---
It should use $target_cpu.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/49448] arm-tab-linux-gnu-eabi enableds big endian when it should not
2011-06-17 5:34 [Bug other/49448] New: gcc configure script wrongly detect TARGET_BIG_ENDIAN_DEFAULT goughost at yahoo dot com.cn
2011-06-17 7:26 ` [Bug other/49448] " schwab@linux-m68k.org
@ 2012-01-28 20:04 ` pinskia at gcc dot gnu.org
2012-02-28 15:28 ` rearnsha at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-28 20:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49448
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-01-28
Component|other |target
Summary|gcc configure script |arm-tab-linux-gnu-eabi
|wrongly detect |enableds big endian when it
|TARGET_BIG_ENDIAN_DEFAULT |should not
Ever Confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-28 19:26:30 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/49448] arm-tab-linux-gnu-eabi enableds big endian when it should not
2011-06-17 5:34 [Bug other/49448] New: gcc configure script wrongly detect TARGET_BIG_ENDIAN_DEFAULT goughost at yahoo dot com.cn
2011-06-17 7:26 ` [Bug other/49448] " schwab@linux-m68k.org
2012-01-28 20:04 ` [Bug target/49448] arm-tab-linux-gnu-eabi enableds big endian when it should not pinskia at gcc dot gnu.org
@ 2012-02-28 15:28 ` rearnsha at gcc dot gnu.org
2012-04-12 14:11 ` rearnsha at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2012-02-28 15:28 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49448
--- Comment #3 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2012-02-28 15:26:13 UTC ---
Author: rearnsha
Date: Tue Feb 28 15:26:02 2012
New Revision: 184626
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184626
Log:
PR target/49448
* config.gcc (arm*-*-linux*): Use an unambiguous pattern for
detecting big-endian triplets.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config.gcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/49448] arm-tab-linux-gnu-eabi enableds big endian when it should not
2011-06-17 5:34 [Bug other/49448] New: gcc configure script wrongly detect TARGET_BIG_ENDIAN_DEFAULT goughost at yahoo dot com.cn
` (2 preceding siblings ...)
2012-02-28 15:28 ` rearnsha at gcc dot gnu.org
@ 2012-04-12 14:11 ` rearnsha at gcc dot gnu.org
2012-04-12 14:12 ` rearnsha at gcc dot gnu.org
2012-04-12 14:17 ` rearnsha at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2012-04-12 14:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49448
--- Comment #4 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2012-04-12 14:11:37 UTC ---
Author: rearnsha
Date: Thu Apr 12 14:11:33 2012
New Revision: 186379
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186379
Log:
PR target/49448
* config.gcc (arm*-*-linux*): Use an unambiguous pattern for
detecting big-endian triplets.
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/config.gcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/49448] arm-tab-linux-gnu-eabi enableds big endian when it should not
2011-06-17 5:34 [Bug other/49448] New: gcc configure script wrongly detect TARGET_BIG_ENDIAN_DEFAULT goughost at yahoo dot com.cn
` (3 preceding siblings ...)
2012-04-12 14:11 ` rearnsha at gcc dot gnu.org
@ 2012-04-12 14:12 ` rearnsha at gcc dot gnu.org
2012-04-12 14:17 ` rearnsha at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2012-04-12 14:12 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49448
--- Comment #5 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2012-04-12 14:11:53 UTC ---
Author: rearnsha
Date: Thu Apr 12 14:11:49 2012
New Revision: 186380
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186380
Log:
PR target/49448
* config.gcc (arm*-*-linux*): Use an unambiguous pattern for
detecting big-endian triplets.
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/config.gcc
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug target/49448] arm-tab-linux-gnu-eabi enableds big endian when it should not
2011-06-17 5:34 [Bug other/49448] New: gcc configure script wrongly detect TARGET_BIG_ENDIAN_DEFAULT goughost at yahoo dot com.cn
` (4 preceding siblings ...)
2012-04-12 14:12 ` rearnsha at gcc dot gnu.org
@ 2012-04-12 14:17 ` rearnsha at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2012-04-12 14:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49448
Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.5.4
--- Comment #6 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2012-04-12 14:16:43 UTC ---
Fixed in 4.5.4, 4.6.4 4.7 and trunk
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-04-12 14:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-17 5:34 [Bug other/49448] New: gcc configure script wrongly detect TARGET_BIG_ENDIAN_DEFAULT goughost at yahoo dot com.cn
2011-06-17 7:26 ` [Bug other/49448] " schwab@linux-m68k.org
2012-01-28 20:04 ` [Bug target/49448] arm-tab-linux-gnu-eabi enableds big endian when it should not pinskia at gcc dot gnu.org
2012-02-28 15:28 ` rearnsha at gcc dot gnu.org
2012-04-12 14:11 ` rearnsha at gcc dot gnu.org
2012-04-12 14:12 ` rearnsha at gcc dot gnu.org
2012-04-12 14:17 ` rearnsha 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).