source: patches/gcc-4.1.0-sparc_tls-1.patch@ f41fea6

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f41fea6 was 689bfe5a, checked in by Jim Gifford <clfs@…>, 19 years ago

Added: gcc-4.1.0-sparc_tls-1.patch

  • Property mode set to 100644
File size: 815 bytes
RevLine 
[689bfe5a]1Submitted By: Ryan Oliver <ryan at pha dot com dot au>
2Date: 2006-04-30
3Initial Package Version: 4.1.0
4Origin: Jakub
5Upstream Status: In GCC Trunk
6Description: Fixed in GCC SVN Revision #110522
7 * config/sparc/sparc.c (sparc_output_scratch_registers): Use
8 #ignore instead of #scratch for %g7 .register directive.
9
10--- trunk/gcc/config/sparc/sparc.c 2006/01/31 22:33:27 110451
11+++ trunk/gcc/config/sparc/sparc.c 2006/02/02 22:49:01 110522
12@@ -3693,7 +3693,10 @@
13 && ! sparc_hard_reg_printed [i])
14 {
15 sparc_hard_reg_printed [i] = 1;
16- fprintf (file, "\t.register\t%%g%d, #scratch\n", i);
17+ /* %g7 is used as TLS base register, use #ignore
18+ for it instead of #scratch. */
19+ fprintf (file, "\t.register\t%%g%d, #%s\n", i,
20+ i == 7 ? "ignore" : "scratch");
21 }
22 if (i == 3) i = 5;
23 }
24
Note: See TracBrowser for help on using the repository browser.