public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52698] New: -maddress-mode=long doesn't work
@ 2012-03-24  6:52 hjl.tools at gmail dot com
  2012-03-24  9:54 ` [Bug target/52698] " ubizjak at gmail dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: hjl.tools at gmail dot com @ 2012-03-24  6:52 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52698
           Summary: -maddress-mode=long doesn't work
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hjl.tools@gmail.com
                CC: ubizjak@gmail.com
            Target: x86-64


[hjl@gnu-mic-2 gcc]$ cat /tmp/x.c
extern void abort (void);
static __thread unsigned char foo [32]
  __attribute__ ((tls_model ("initial-exec"), aligned (sizeof (void *))));
void
test2 (void)
{
  unsigned int s;
  for (s = 0; s < sizeof (foo); ++s)
    {
      if (foo [s] != s)
 abort ();
      foo [s] = sizeof (foo) - s;
    }
}
[hjl@gnu-mic-2 gcc]$ ./xgcc -B./ -mx32 -O2  -S /tmp/x.c  -maddress-mode=long
/tmp/x.c: In function \u2018test2\u2019:
/tmp/x.c:14:1: error: insn does not satisfy its constraints:
(insn 52 78 53 5 (set (mem/j:QI (plus:DI (plus:DI (reg:DI 37 r8)
                    (reg:DI 38 r9))
                (reg:DI 2 cx [orig:98 D.1709 ] [98])) [0 foo S1 A8])
        (reg:QI 1 dx [100])) /tmp/x.c:12 66 {*movqi_internal}
     (nil))
/tmp/x.c:14:1: internal compiler error: in reload_cse_simplify_operands, at
postreload.c:403
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[hjl@gnu-mic-2 gcc]$ ./xgcc -B./ -mx32 -O2  -S /tmp/x.c  -maddress-mode=short
[hjl@gnu-mic-2 gcc]$


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

end of thread, other threads:[~2012-03-29 20:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-24  6:52 [Bug target/52698] New: -maddress-mode=long doesn't work hjl.tools at gmail dot com
2012-03-24  9:54 ` [Bug target/52698] " ubizjak at gmail dot com
2012-03-24 15:25 ` hjl.tools at gmail dot com
2012-03-24 17:14 ` hjl.tools at gmail dot com
2012-03-25 20:09 ` ubizjak at gmail dot com
2012-03-25 22:31 ` ubizjak at gmail dot com
2012-03-25 23:43 ` ubizjak at gmail dot com
2012-03-26  3:26 ` hjl.tools at gmail dot com
2012-03-27 15:40 ` uros at gcc dot gnu.org
2012-03-29 19:19 ` uros at gcc dot gnu.org
2012-03-29 19:37 ` uros at gcc dot gnu.org
2012-03-29 20:01 ` uros at gcc dot gnu.org
2012-03-29 20:03 ` ubizjak at gmail dot com

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).