public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12968] New: doc m68k -mshort
@ 2003-11-08 22:08 gcc-bugzilla at gcc dot gnu dot org
2003-11-08 22:35 ` [Bug target/12968] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2003-11-08 22:08 UTC (permalink / raw)
To: gcc-bugs
In the manual, "M680x0 Options" says that -mshort makes int 16-bits
the same as short. But if I'm not mistaken it also changes to just
16-bit alignment for parameters passed on the stack (instead of
32-bits for a normal SVR4 style system).
Perhaps "short" is an ABI I'm not familiar with or something, but it'd
be good if the stack alignment could be mentioned too, so it doesn't
read like the option is merely a type size change.
Environment:
System: NetBSD lax.swox.se 1.4.1 NetBSD 1.4.1 (GENERIC) #0: Wed Aug 11 04:56:57 CDT 1999 fredb@corwin.home:/usr/src/sys/arch/mac68k/compile/GENERIC mac68k
host: m68k-unknown-netbsd1.4.1
build: m68k-unknown-netbsd1.4.1
target: m68k-unknown-netbsd1.4.1
configured with: /u/gcc/gcc-3.2.1/configure --enable-languages=c,c++
How-To-Repeat:
.
--
Summary: doc m68k -mshort
Product: gcc
Version: 3.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: user42 at zip dot com dot au
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: m68k-unknown-netbsd1.4.1
GCC host triplet: m68k-unknown-netbsd1.4.1
GCC target triplet: m68k-unknown-netbsd1.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12968
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/12968] doc m68k -mshort
2003-11-08 22:08 [Bug c/12968] New: doc m68k -mshort gcc-bugzilla at gcc dot gnu dot org
@ 2003-11-08 22:35 ` pinskia at gcc dot gnu dot org
2003-11-08 22:45 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-08 22:35 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c |target
Keywords| |documentation
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12968
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/12968] doc m68k -mshort
2003-11-08 22:08 [Bug c/12968] New: doc m68k -mshort gcc-bugzilla at gcc dot gnu dot org
2003-11-08 22:35 ` [Bug target/12968] " pinskia at gcc dot gnu dot org
@ 2003-11-08 22:45 ` pinskia at gcc dot gnu dot org
2003-11-09 15:54 ` schwab at suse dot de
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-08 22:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-08 22:45 -------
It does change the alignment:
/* Allocation boundary (in *bits*) for storing arguments in argument list. */
#define PARM_BOUNDARY (TARGET_SHORT ? 16 : 32)
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-11-08 22:45:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12968
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/12968] doc m68k -mshort
2003-11-08 22:08 [Bug c/12968] New: doc m68k -mshort gcc-bugzilla at gcc dot gnu dot org
2003-11-08 22:35 ` [Bug target/12968] " pinskia at gcc dot gnu dot org
2003-11-08 22:45 ` pinskia at gcc dot gnu dot org
@ 2003-11-09 15:54 ` schwab at suse dot de
2004-05-30 19:44 ` bernie at develer dot com
2004-07-10 0:55 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: schwab at suse dot de @ 2003-11-09 15:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schwab at suse dot de 2003-11-09 15:54 -------
-mshort uses an ABI where int has 16 bits, so it seems natural to also change
parameter passing accordingly. When -mshort was added (April 1988) SVR4 may
not even have existed yet.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12968
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/12968] doc m68k -mshort
2003-11-08 22:08 [Bug c/12968] New: doc m68k -mshort gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-11-09 15:54 ` schwab at suse dot de
@ 2004-05-30 19:44 ` bernie at develer dot com
2004-07-10 0:55 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: bernie at develer dot com @ 2004-05-30 19:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bernie at develer dot com 2004-05-29 16:19 -------
Proposed fix:
http://gcc.gnu.org/ml/gcc-patches/2004-05/msg01937.html
2004-05-29 Bernardo Innocenti <bernie@develer.com>
PR target/12968
* doc/invoke.texi: Document stack alignment side-effect of
-mshort.
diff -u -p -r1.466 invoke.texi
--- gcc/doc/invoke.texi 25 May 2004 12:55:04 -0000 1.466
+++ gcc/doc/invoke.texi 29 May 2004 16:11:53 -0000
@@ -6349,6 +6349,8 @@ cross-compilation. The embedded targets
@item -mshort
@opindex mshort
Consider type @code{int} to be 16 bits wide, like @code{short int}.
+Additionally, parameters passed on the stack are also aligned to a
+16-bit boundary even on targets whose API mandates promotion to 32-bit.
@item -mnobitfield
@opindex mnobitfield
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|2004-05-11 04:26:26 |2004-05-29 16:19:43
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12968
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/12968] doc m68k -mshort
2003-11-08 22:08 [Bug c/12968] New: doc m68k -mshort gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-05-30 19:44 ` bernie at develer dot com
@ 2004-07-10 0:55 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-10 0:55 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12968
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-07-10 0:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-08 22:08 [Bug c/12968] New: doc m68k -mshort gcc-bugzilla at gcc dot gnu dot org
2003-11-08 22:35 ` [Bug target/12968] " pinskia at gcc dot gnu dot org
2003-11-08 22:45 ` pinskia at gcc dot gnu dot org
2003-11-09 15:54 ` schwab at suse dot de
2004-05-30 19:44 ` bernie at develer dot com
2004-07-10 0:55 ` pinskia at gcc dot gnu dot 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).