# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../gcc/gcc-4.1.1-sparc_tls-1.patch # Copyright (C) 2006 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- Fixed in GCC SVN Revision #110522: * config/sparc/sparc.c (sparc_output_scratch_registers): Use #ignore instead of #scratch for %g7 .register directive. - Rene Rebe --- trunk/gcc/config/sparc/sparc.c 2006/01/31 22:33:27 110451 +++ trunk/gcc/config/sparc/sparc.c 2006/02/02 22:49:01 110522 @@ -3693,7 +3693,10 @@ && ! sparc_hard_reg_printed [i]) { sparc_hard_reg_printed [i] = 1; - fprintf (file, "\t.register\t%%g%d, #scratch\n", i); + /* %g7 is used as TLS base register, use #ignore + for it instead of #scratch. */ + fprintf (file, "\t.register\t%%g%d, #%s\n", i, + i == 7 ? "ignore" : "scratch"); } if (i == 3) i = 5; }